Class: Cardflex::SuccessResponse

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/cardflex/success_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included, #method_missing

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_vaultObject (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

#planObject (readonly)

Returns the value of attribute plan.



5
6
7
# File 'lib/cardflex/success_response.rb', line 5

def plan
  @plan
end

#subscriptionObject (readonly)

Returns the value of attribute subscription.



5
6
7
# File 'lib/cardflex/success_response.rb', line 5

def subscription
  @subscription
end

#three_stepObject (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

#transactionObject (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

Returns:

  • (Boolean)


11
12
13
# File 'lib/cardflex/success_response.rb', line 11

def success?
  true
end