Class: BogApi::V1::Sell

Inherits:
Object
  • Object
show all
Defined in:
lib/bog_api/v1/sell.rb

Class Method Summary collapse

Class Method Details

.all(query = {}) ⇒ Object



5
6
7
# 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) ⇒ Object



13
14
15
# 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) ⇒ Object



9
10
11
# 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