Skip to content

Instantly share code, notes, and snippets.

defmodule Hub.JsonApiClient.Middleware.NormalizeAttributes do
@moduledoc """
JsonApiClient middleware to convert attributes from kebab-case to snake_case.
"""
@behaviour JsonApiClient.Middleware
alias JsonApiClient.{Request}
@impl JsonApiClient.Middleware
@doc """
Parse notifications from any of the supported banks to a YNAB
transaction.
## Examples
iex> notification = \"""
Apreciado(a) X:
Le informamos que se ha registrado el siguiente movimiento de su Tarjeta Crédito terminada en ****2020:
Apreciado(a) X:
Le informamos que se ha registrado el siguiente movimiento de su Tarjeta Crédito terminada en ****2020:
Fecha: 2018/11/23
Hora: 15:33:30
Valor Transacción: 18,000
Clase de Movimiento: Compra
Respuesta: Aprobado(a)
Lugar de Transacción: CAFE SAN ALBERTO MUSE0
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.0
ports:
- 9200:9200
environment:
- xpack.security.enabled=false
import { JsonApiDataStore } from 'jsonapi-datastore';
let store = new JsonApiDataStore();
async function loadData() {
const deliveryAreas = await store.findAll('deliveryArea');
}
loadData()
0x0D34a6d46E7066A13Ac723B7B3f3ACdB9F7BA0D4
0x0085f8e72391Ce4BB5ce47541C846d059399fA6c
[
{
"constant": true,
"inputs": [],
"name": "getCreator",
"outputs": [
{
"name": "",
"type": "address"
}
require 'test_helper'
class ChapterTest < Minitest::Test
def chapters
[
{
position: 324
},
{
position: 328
this.passthroughAllBut = [
'api/v2/foo/*',
'api/v2/bar/*'
];