Module: Spree::API::Client::Adjustments
- Included in:
- Spree::API::Client
- Defined in:
- lib/spree-api-client/adjustments.rb
Instance Method Summary collapse
- #adjustment(id, options = {}) ⇒ Object
- #adjustments(options = {}) ⇒ Object
- #create_adjustment(options = {}) ⇒ Object
- #update_adjustment(id, options = {}) ⇒ Object
Instance Method Details
#adjustment(id, options = {}) ⇒ Object
5 6 7 |
# File 'lib/spree-api-client/adjustments.rb', line 5 def adjustment(id, ={}) get("adjustments/#{id}", ) end |
#adjustments(options = {}) ⇒ Object
9 10 11 |
# File 'lib/spree-api-client/adjustments.rb', line 9 def adjustments(={}) get('adjustments', ) end |
#create_adjustment(options = {}) ⇒ Object
13 14 15 |
# File 'lib/spree-api-client/adjustments.rb', line 13 def create_adjustment(={}) post("adjustments", ) end |
#update_adjustment(id, options = {}) ⇒ Object
17 18 19 |
# File 'lib/spree-api-client/adjustments.rb', line 17 def update_adjustment(id, ={}) post("adjustments", ) end |