Class: OFX::CreditCardAccount
- Inherits:
-
Object
- Object
- OFX::CreditCardAccount
- Defined in:
- lib/ofx/credit_card_statement_message_set.rb,
lib/ofx/1.0.2/credit_card_statement_message_set.rb
Instance Attribute Summary collapse
-
#account_identifier ⇒ Object
Returns the value of attribute account_identifier.
-
#account_key ⇒ Object
Returns the value of attribute account_key.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#account_identifier ⇒ Object
Returns the value of attribute account_identifier.
40 41 42 |
# File 'lib/ofx/credit_card_statement_message_set.rb', line 40 def account_identifier @account_identifier end |
#account_key ⇒ Object
Returns the value of attribute account_key.
41 42 43 |
# File 'lib/ofx/credit_card_statement_message_set.rb', line 41 def account_key @account_key end |
Class Method Details
.from_ofx_102_hash(account_hash) ⇒ Object
73 74 75 76 77 78 79 80 |
# File 'lib/ofx/1.0.2/credit_card_statement_message_set.rb', line 73 def self.from_ofx_102_hash(account_hash) account = OFX::BankingAccount.new account.account_identifier = account_hash['ACCTID'] account.account_key = account_hash['ACCTKEY'] account end |
Instance Method Details
#to_ofx_102_request_body ⇒ Object
64 65 66 67 68 69 70 71 |
# File 'lib/ofx/1.0.2/credit_card_statement_message_set.rb', line 64 def to_ofx_102_request_body " <CCACCTFROM>\n" + " <ACCTID>#{account_identifier}\n" + (account_key ? " <ACCTKEY>#{account_key}\n" : "") + " </CCACCTFROM>\n" end |