Class: ChipRails::Purchase
- Inherits:
-
Object
- Object
- ChipRails::Purchase
- Defined in:
- lib/chip_rails.rb
Class Method Summary collapse
Class Method Details
.create(purchase_details) ⇒ Object
152 153 154 |
# File 'lib/chip_rails.rb', line 152 def self.create(purchase_details) ChipRails.make_request(:post, 'purchases/', body: purchase_details) end |
.retrieve(purchase_id) ⇒ Object
156 157 158 |
# File 'lib/chip_rails.rb', line 156 def self.retrieve(purchase_id) ChipRails.make_request(:get, "purchases/#{purchase_id}/") end |