Class: Modulr::Resources::Accounts::Account
- Defined in:
- lib/modulr/resources/accounts/account.rb
Constant Summary collapse
- STATUS =
{ active: "ACTIVE", blocked: "BLOCKED", closed: "CLOSED", client_blocked: "CLIENT_BLOCKED", }.freeze
Instance Attribute Summary collapse
-
#identifiers ⇒ Object
readonly
Returns the value of attribute identifiers.
-
#requested_at ⇒ Object
readonly
Returns the value of attribute requested_at.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(response, attributes, opts = { requested_at: nil }) ⇒ Account
constructor
A new instance of Account.
Methods inherited from Base
Constructor Details
#initialize(response, attributes, opts = { requested_at: nil }) ⇒ Account
Returns a new instance of Account.
26 27 28 29 30 31 |
# File 'lib/modulr/resources/accounts/account.rb', line 26 def initialize(response, attributes, opts = { requested_at: nil }) super(response, attributes) @requested_at = opts[:requested_at] @identifiers = Accounts::Identifiers.new(nil, attributes[:identifiers]) end |
Instance Attribute Details
#identifiers ⇒ Object (readonly)
Returns the value of attribute identifiers.
7 8 9 |
# File 'lib/modulr/resources/accounts/account.rb', line 7 def identifiers @identifiers end |
#requested_at ⇒ Object (readonly)
Returns the value of attribute requested_at.
7 8 9 |
# File 'lib/modulr/resources/accounts/account.rb', line 7 def requested_at @requested_at end |