Sha256: c35b1b7ce8594249742d00995652a38665a2c452d89f8cb141504f463ff624f2
Contents?: true
Size: 682 Bytes
Versions: 5
Compression:
Stored size: 682 Bytes
Contents
module BlockScore class Company def initialize(client) @client = client end # # /companies POST # def create(options = {}) response = @client.post '/companies', options end # # /companies/:id GET # def retrieve(id, options = {}) body = (options.include? :query) ? options[:body] : {} response = @client.get "/companies/#{id.to_s}", body end # # '/companies' GET # def all(count = nil, offset = nil, options = {}) body = (options.include? :body) ? options[:body] : {} body[:count] = count body[:offset] = offset @client.get '/companies', body end end end
Version data entries
5 entries across 5 versions & 1 rubygems