Class: PFS::Resources::Accounts::Account
- Defined in:
- lib/pfs/resources/accounts/account.rb
Instance Attribute Summary collapse
-
#holder ⇒ Object
readonly
Returns the value of attribute holder.
-
#info ⇒ Object
readonly
Returns the value of attribute info.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(response, attributes = {}) ⇒ Account
constructor
A new instance of Account.
Methods inherited from Base
Constructor Details
#initialize(response, attributes = {}) ⇒ Account
Returns a new instance of Account.
12 13 14 15 16 |
# File 'lib/pfs/resources/accounts/account.rb', line 12 def initialize(response, attributes = {}) super(response, attributes) @holder = AccountHolder.new(response, attributes.dig(:accountInfo, :cardholder)) @info = AccountInfo.new(response, attributes.dig(:accountInfo, :card)) end |
Instance Attribute Details
#holder ⇒ Object (readonly)
Returns the value of attribute holder.
7 8 9 |
# File 'lib/pfs/resources/accounts/account.rb', line 7 def holder @holder end |
#info ⇒ Object (readonly)
Returns the value of attribute info.
7 8 9 |
# File 'lib/pfs/resources/accounts/account.rb', line 7 def info @info end |