Class: BsellerRuby::Price

Inherits:
Base
  • Object
show all
Defined in:
lib/bseller_ruby/price.rb

Constant Summary collapse

PATH =
"itens/precos"

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

call, collection_name, create, get, #initialize, post, put

Constructor Details

This class inherits a constructor from BsellerRuby::Base

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/bseller_ruby/price.rb', line 3

def response
  @response
end

Class Method Details

.confirm(cod_item, params = {}) ⇒ Object



11
12
13
# File 'lib/bseller_ruby/price.rb', line 11

def self.confirm(cod_item, params = {})
  post("#{PATH}/status/#{cod_item}?#{to_params(params)}", {})
end

.list(params = {}) ⇒ Object



7
8
9
# File 'lib/bseller_ruby/price.rb', line 7

def self.list(params = {})
  get(PATH, params)
end