Class: K2ConnectRuby::K2Entity::K2FinancialEntities::ExternalRecipient::RecipientRequest
- Inherits:
-
Object
- Object
- K2ConnectRuby::K2Entity::K2FinancialEntities::ExternalRecipient::RecipientRequest
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/k2-connect-ruby/k2_entity/k2_financial_entities/external_recipient/recipient_request.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #endpoint ⇒ Object
-
#initialize(kwargs) ⇒ RecipientRequest
constructor
A new instance of RecipientRequest.
- #request_body ⇒ Object
Constructor Details
#initialize(kwargs) ⇒ RecipientRequest
Returns a new instance of RecipientRequest.
12 13 14 15 16 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/external_recipient/recipient_request.rb', line 12 def initialize(kwargs) kwargs.each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#nickname ⇒ Object
Returns the value of attribute nickname.
10 11 12 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/external_recipient/recipient_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/external_recipient/recipient_request.rb', line 10 def type @type end |
Instance Method Details
#endpoint ⇒ Object
18 19 20 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/external_recipient/recipient_request.rb', line 18 def endpoint K2ConnectRuby::K2Utilities::Config::K2Config.endpoint("external_recipient") end |
#request_body ⇒ Object
22 23 24 25 26 27 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/external_recipient/recipient_request.rb', line 22 def request_body { type: type, external_recipient: self.as_json } end |