Class: BoffinIO::Customer
- Inherits:
-
APIResource
- Object
- BoffinIOObject
- APIResource
- BoffinIO::Customer
- Defined in:
- lib/boffinio/customer.rb
Instance Attribute Summary
Attributes inherited from BoffinIOObject
Instance Method Summary collapse
- #cancel_subscription(params = {}) ⇒ Object
- #create_subscription(params) ⇒ Object
- #update_subscription(params) ⇒ Object
Methods included from APIOperations::Update
#save, #serialize_metadata, #serialize_params
Methods included from APIOperations::Create
Methods included from APIOperations::List
Methods inherited from APIResource
class_name, #refresh, retrieve, url, #url
Methods inherited from BoffinIOObject
#[], #[]=, #_dump, _load, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #respond_to?, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from BoffinIO::BoffinIOObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BoffinIO::BoffinIOObject
Instance Method Details
#cancel_subscription(params = {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/boffinio/customer.rb', line 9 def cancel_subscription(params={}) response, api_key = BoffinIO.request(:delete, subscriptions_url, @api_key, params) refresh_from({ :subscription => response }, api_key, true) subscription end |