Class: Smartcoin::Customer

Constant Summary

Constants included from ApiResource

ApiResource::BASE_URL, ApiResource::SSL_BUNDLE_PATH

Instance Method Summary collapse

Methods included from ApiOperations::List

included, #list_all

Methods included from ApiOperations::Delete

#delete

Methods included from ApiOperations::Update

#save, #update

Methods included from ApiOperations::Retrieve

included, #retrieve

Methods included from ApiOperations::Create

#create, included

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

#subscriptionsObject



10
11
12
# File 'lib/smartcoin/customer.rb', line 10

def subscriptions
  Smartcoin::Subscription.create_from({customer: self.id})
end