Sha256: 2b061787927cc8568ada1906df800b80e8bd1cb3be46c1ec3e2c1c43d8032dff
Contents?: true
Size: 518 Bytes
Versions: 4
Compression:
Stored size: 518 Bytes
Contents
require "dato/json_api_serializer" require "dato/json_api_deserializer" module Dato module Account module Repo class Base attr_reader :client def initialize(client) @client = client end private %i(post put delete get).each do |method| define_method "#{method}_request" do |*args| JsonApiDeserializer.new.deserialize( client.request(method, *args) ) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dato-0.1.5 | lib/dato/account/repo/base.rb |
dato-0.1.4 | lib/dato/account/repo/base.rb |
dato-0.1.3 | lib/dato/account/repo/base.rb |
dato-0.1.2 | lib/dato/account/repo/base.rb |