Sha256: d39a7ad23b125a899043a054e591ad5f05066a7af3b72e8260f03d7b42118707
Contents?: true
Size: 360 Bytes
Versions: 164
Compression:
Stored size: 360 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, nil, @model_name => params) end end end end
Version data entries
164 entries across 164 versions & 1 rubygems