Class: Smartcoin::Customer
- Inherits:
-
SmartcoinObject
- Object
- SmartcoinObject
- Smartcoin::Customer
- Includes:
- ApiOperations::Create, ApiOperations::Delete, ApiOperations::List, ApiOperations::Retrieve, ApiOperations::Update, ApiResource
- Defined in:
- lib/smartcoin/customer.rb
Constant Summary
Constants included from ApiResource
ApiResource::BASE_URL, ApiResource::SSL_BUNDLE_PATH
Instance Method Summary collapse
Methods included from ApiOperations::List
Methods included from ApiOperations::Delete
Methods included from ApiOperations::Update
Methods included from ApiOperations::Retrieve
Methods included from ApiOperations::Create
Methods included from ApiResource
#api_request, #encode, included, #url_encode
Methods inherited from SmartcoinObject
class_name, #create_fields, create_from, #initialize, #metaclass, #method_missing, #reflesh_object, #serialize_params, #set_properties, #to_hash, #to_json, #to_s, #url, url
Constructor Details
This class inherits a constructor from Smartcoin::SmartcoinObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Smartcoin::SmartcoinObject
Instance Method Details
#subscriptions ⇒ Object
10 11 12 |
# File 'lib/smartcoin/customer.rb', line 10 def subscriptions Smartcoin::Subscription.create_from({customer: self.id}) end |