class BogApi::V1::Sell

Public Class Methods

all(query = {}) click to toggle source
# File lib/bog_api/v1/sell.rb, line 5
def self.all(query = {})
  BogApi.get("/sells.json", query: query, headers: {"Token" => BogApi.configuration.token }).parsed_response
end
create(sell_data) click to toggle source
# File lib/bog_api/v1/sell.rb, line 13
def self.create(sell_data)
  BogApi.post("/sells.json", body: sell_data.to_json, headers: {"Token" => BogApi.configuration.token }).parsed_response
end
find(id) click to toggle source
# File lib/bog_api/v1/sell.rb, line 9
def self.find(id)
  BogApi.get("/sells/#{id}.json", headers: {"Token" => BogApi.configuration.token }).parsed_response
end