Class: Starling::Resources::ContactAccountResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- Starling::Resources::ContactAccountResource
- Defined in:
- lib/starling/resources/contact_account_resource.rb
Overview
A resource representing a Contact Account returned from the Contact Accounts API
Instance Method Summary collapse
-
#account_number ⇒ String
The account number of the contact account.
-
#id ⇒ String
The Starling internal ID of the contact account.
-
#name ⇒ String
The name of the contact account.
-
#sort_code ⇒ String
The sort code of the contact account.
-
#type ⇒ Symbol
The type of the contact account (e.g. ‘:domestic`).
Methods inherited from BaseResource
Constructor Details
This class inherits a constructor from Starling::Resources::BaseResource
Instance Method Details
#account_number ⇒ String
Returns the account number of the contact account.
21 22 23 |
# File 'lib/starling/resources/contact_account_resource.rb', line 21 def account_number parsed_data['accountNumber'] end |
#id ⇒ String
Returns the Starling internal ID of the contact account.
6 7 8 |
# File 'lib/starling/resources/contact_account_resource.rb', line 6 def id parsed_data['id'] end |
#name ⇒ String
Returns the name of the contact account.
11 12 13 |
# File 'lib/starling/resources/contact_account_resource.rb', line 11 def name parsed_data['name'] end |
#sort_code ⇒ String
Returns the sort code of the contact account.
26 27 28 |
# File 'lib/starling/resources/contact_account_resource.rb', line 26 def sort_code parsed_data['sortCode'] end |
#type ⇒ Symbol
Returns the type of the contact account (e.g. ‘:domestic`).
16 17 18 |
# File 'lib/starling/resources/contact_account_resource.rb', line 16 def type present_enum(parsed_data['type']) end |