Sha256: 3427d4f463e16d875971f0f231f915d41e12c0ab6ce3ec3260c2d65204d3c4f1
Contents?: true
Size: 355 Bytes
Versions: 14
Compression:
Stored size: 355 Bytes
Contents
module Flydata module Api class Base def initialize(api_client) @client = api_client end def list(params={}) @client.get(@url_path) end def create(params={}) params.each {|k, v| @url_path.gsub!(/:#{k}/, v.to_s)} @client.post(@url_path, @model_name => params) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems