Class: Cardflex::SuccessResponse
- Inherits:
-
Object
- Object
- Cardflex::SuccessResponse
- Includes:
- BaseModule
- Defined in:
- lib/cardflex/success_response.rb
Instance Attribute Summary collapse
-
#customer_vault ⇒ Object
readonly
Returns the value of attribute customer_vault.
-
#plan ⇒ Object
readonly
Returns the value of attribute plan.
-
#subscription ⇒ Object
readonly
Returns the value of attribute subscription.
-
#three_step ⇒ Object
readonly
Returns the value of attribute three_step.
-
#transaction ⇒ Object
readonly
Returns the value of attribute transaction.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ SuccessResponse
constructor
A new instance of SuccessResponse.
- #success? ⇒ Boolean
Methods included from BaseModule
Methods included from BaseModule::ClassMethods
#create_helper_methods, #set_instance_variables_from_hash, #snakecase
Constructor Details
#initialize(hash = {}) ⇒ SuccessResponse
Returns a new instance of SuccessResponse.
7 8 9 |
# File 'lib/cardflex/success_response.rb', line 7 def initialize(hash={}) set_instance_variables_from_hash(hash) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Cardflex::BaseModule
Instance Attribute Details
#customer_vault ⇒ Object (readonly)
Returns the value of attribute customer_vault.
5 6 7 |
# File 'lib/cardflex/success_response.rb', line 5 def customer_vault @customer_vault end |
#plan ⇒ Object (readonly)
Returns the value of attribute plan.
5 6 7 |
# File 'lib/cardflex/success_response.rb', line 5 def plan @plan end |
#subscription ⇒ Object (readonly)
Returns the value of attribute subscription.
5 6 7 |
# File 'lib/cardflex/success_response.rb', line 5 def subscription @subscription end |
#three_step ⇒ Object (readonly)
Returns the value of attribute three_step.
5 6 7 |
# File 'lib/cardflex/success_response.rb', line 5 def three_step @three_step end |
#transaction ⇒ Object (readonly)
Returns the value of attribute transaction.
5 6 7 |
# File 'lib/cardflex/success_response.rb', line 5 def transaction @transaction end |
Instance Method Details
#success? ⇒ Boolean
11 12 13 |
# File 'lib/cardflex/success_response.rb', line 11 def success? true end |