Class: BsellerRuby::Purchase
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
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
#response ⇒ Object (readonly)
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 |