Class: Cardflex::CustomerVault
- Inherits:
-
Object
- Object
- Cardflex::CustomerVault
- Includes:
- BaseModule
- Defined in:
- lib/cardflex/customer_vault.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#action_type ⇒ Object
readonly
Returns the value of attribute action_type.
-
#billing ⇒ Object
readonly
Returns the value of attribute billing.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#customer_vault_id ⇒ Object
readonly
Returns the value of attribute customer_vault_id.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#result_code ⇒ Object
readonly
Returns the value of attribute result_code.
-
#result_text ⇒ Object
readonly
Returns the value of attribute result_text.
-
#shipping ⇒ Object
readonly
Returns the value of attribute shipping.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(gateway, attributes) ⇒ CustomerVault
constructor
A new instance of CustomerVault.
Methods included from BaseModule
Methods included from BaseModule::ClassMethods
#create_helper_methods, #set_instance_variables_from_hash, #snakecase
Constructor Details
#initialize(gateway, attributes) ⇒ CustomerVault
Returns a new instance of CustomerVault.
19 20 21 22 23 24 25 |
# File 'lib/cardflex/customer_vault.rb', line 19 def initialize(gateway, attributes) @gateway = gateway @config = gateway.config @type = attributes[:action_type] set_instance_variables_from_hash(attributes) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Cardflex::BaseModule
Instance Attribute Details
#action_type ⇒ Object (readonly)
Returns the value of attribute action_type.
15 16 17 |
# File 'lib/cardflex/customer_vault.rb', line 15 def action_type @action_type end |
#billing ⇒ Object (readonly)
Returns the value of attribute billing.
17 18 19 |
# File 'lib/cardflex/customer_vault.rb', line 17 def billing @billing end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
14 15 16 |
# File 'lib/cardflex/customer_vault.rb', line 14 def config @config end |
#customer_vault_id ⇒ Object (readonly)
Returns the value of attribute customer_vault_id.
16 17 18 |
# File 'lib/cardflex/customer_vault.rb', line 16 def customer_vault_id @customer_vault_id end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
15 16 17 |
# File 'lib/cardflex/customer_vault.rb', line 15 def result @result end |
#result_code ⇒ Object (readonly)
Returns the value of attribute result_code.
15 16 17 |
# File 'lib/cardflex/customer_vault.rb', line 15 def result_code @result_code end |
#result_text ⇒ Object (readonly)
Returns the value of attribute result_text.
15 16 17 |
# File 'lib/cardflex/customer_vault.rb', line 15 def result_text @result_text end |
#shipping ⇒ Object (readonly)
Returns the value of attribute shipping.
17 18 19 |
# File 'lib/cardflex/customer_vault.rb', line 17 def shipping @shipping end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
17 18 19 |
# File 'lib/cardflex/customer_vault.rb', line 17 def type @type end |
Class Method Details
.request(attributes) ⇒ Object
27 28 29 |
# File 'lib/cardflex/customer_vault.rb', line 27 def self.request(attributes) Configuration.gateway.customer_vault.request(attributes) end |