Class: BsellerRuby::Purchase
- Inherits:
-
Base
- Object
- Base
- BsellerRuby::Purchase
show all
- Defined in:
- lib/bseller_ruby/purchase.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
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
3
4
5
|
# File 'lib/bseller_ruby/purchase.rb', line 3
def response
@response
end
|
Class Method Details
.confirm!(params = {}) ⇒ Object
13
14
15
|
# File 'lib/bseller_ruby/purchase.rb', line 13
def self.confirm!(params = {})
post("#{path}/status?", params)
end
|
.create!(params = {}) ⇒ Object
9
10
11
|
# File 'lib/bseller_ruby/purchase.rb', line 9
def self.create!(params = {})
post("#{path}?", params)
end
|
.list(params = {}) ⇒ Object
5
6
7
|
# File 'lib/bseller_ruby/purchase.rb', line 5
def self.list(params = {})
get(path, params)
end
|
.path ⇒ Object
19
20
21
|
# File 'lib/bseller_ruby/purchase.rb', line 19
def self.path
'compras/requisicao'
end
|