Class: Zoop::PaymentMethodCommon
- Inherits:
-
Model
- Object
- ZoopObject
- Model
- Zoop::PaymentMethodCommon
- Defined in:
- lib/zoop/payment_method_common.rb
Direct Known Subclasses
Constant Summary
Constants inherited from ZoopObject
Instance Attribute Summary
Attributes inherited from ZoopObject
Instance Method Summary collapse
Methods inherited from Model
class_name, create, #destroy, find_by_id, #save, underscored_class_name, #update, url, #url
Methods inherited from ZoopObject
#==, #[]=, convert, #empty?, #initialize, #respond_to?, #to_hash, #to_s, #unsaved_attributes
Constructor Details
This class inherits a constructor from Zoop::ZoopObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Zoop::ZoopObject
Instance Method Details
#associate(customer_id) ⇒ Object
12 13 14 15 |
# File 'lib/zoop/payment_method_common.rb', line 12 def associate(customer_id) raise RequestError.new('Invalid Token ID') unless token.present? self.class.associate(customer: customer_id.to_s, token: token.to_s) end |