class Starling::Resources::AccountResource

A resource representing a response from the Account API

Public Instance Methods

account_number()
Alias for: number
bic() click to toggle source

@return [String] the BIC of the account

# File lib/starling/resources/account_resource.rb, line 21
def bic
  parsed_data['bic']
end
created_at() click to toggle source

@return [Time] the time and date when the account was created

# File lib/starling/resources/account_resource.rb, line 6
def created_at
  present_datetime(parsed_data['createdAt'])
end
currency() click to toggle source

@return [String] the currency of the account

# File lib/starling/resources/account_resource.rb, line 11
def currency
  parsed_data['currency']
end
iban() click to toggle source

@return [String] the IBAN of the account

# File lib/starling/resources/account_resource.rb, line 16
def iban
  parsed_data['iban']
end
id() click to toggle source

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

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

@return [String] the name of the account

# File lib/starling/resources/account_resource.rb, line 31
def name
  parsed_data['name']
end
number() click to toggle source

@return [String] the account number of the account

# File lib/starling/resources/account_resource.rb, line 36
def number
  parsed_data['number']
end
Also aliased as: account_number
sort_code() click to toggle source

@return [String] the sort code of the account

# File lib/starling/resources/account_resource.rb, line 42
def sort_code
  parsed_data['sortCode']
end