class Starling::Resources::ContactAccountResource

A resource representing a Contact Account returned from the Contact Accounts API

Public Instance Methods

account_number() click to toggle source

@return [String] the account number of the contact account

# File lib/starling/resources/contact_account_resource.rb, line 21
def account_number
  parsed_data['accountNumber']
end
id() click to toggle source

@return [String] the Starling internal ID of the contact account

# File lib/starling/resources/contact_account_resource.rb, line 6
def id
  parsed_data['id']
end
name() click to toggle source

@return [String] the name of the contact account

# File lib/starling/resources/contact_account_resource.rb, line 11
def name
  parsed_data['name']
end
sort_code() click to toggle source

@return [String] the sort code of the contact account

# File lib/starling/resources/contact_account_resource.rb, line 26
def sort_code
  parsed_data['sortCode']
end
type() click to toggle source

@return [Symbol] the type of the contact account (e.g. `:domestic`)

# File lib/starling/resources/contact_account_resource.rb, line 16
def type
  present_enum(parsed_data['type'])
end