Class: K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::DestinationRequest
- Inherits:
-
Object
- Object
- K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::DestinationRequest
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/destination_request.rb
Direct Known Subclasses
ExternalBankAccount, ExternalMpesaWallet, ExternalPaybill, ExternalTill, MerchantBankAccount, MerchantMpesaWallet
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#description ⇒ Object
Returns the value of attribute description.
-
#favourite ⇒ Object
Returns the value of attribute favourite.
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #destination_payload ⇒ Object
-
#initialize(kwargs) ⇒ DestinationRequest
constructor
A new instance of DestinationRequest.
Constructor Details
#initialize(kwargs) ⇒ DestinationRequest
Returns a new instance of DestinationRequest.
16 17 18 19 20 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/destination_request.rb', line 16 def initialize(kwargs) kwargs.each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
10 11 12 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/destination_request.rb', line 10 def amount @amount end |
#description ⇒ Object
Returns the value of attribute description.
10 11 12 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/destination_request.rb', line 10 def description @description end |
#favourite ⇒ Object
Returns the value of attribute favourite.
10 11 12 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/destination_request.rb', line 10 def favourite @favourite end |
#nickname ⇒ Object
Returns the value of attribute nickname.
10 11 12 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/destination_request.rb', line 10 def nickname @nickname end |
#type ⇒ Object
Returns the value of attribute type.
10 11 12 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/destination_request.rb', line 10 def type @type end |
Instance Method Details
#destination_payload ⇒ Object
22 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/destination_request.rb', line 22 def destination_payload; end |