Class: BsellerRuby::Price

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

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

api, authentication, call, camelize, collection_name, create, execute, get, get_wsdl, #initialize, json_parse, post, put, to_params, ws

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



9
10
11
# File 'lib/bseller_ruby/price.rb', line 9

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

.list(params = {}) ⇒ Object



5
6
7
# File 'lib/bseller_ruby/price.rb', line 5

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

.pathObject



15
16
17
# File 'lib/bseller_ruby/price.rb', line 15

def self.path
  'itens/precos'
end