Class: Starling::Resources::ContactAccountResource

Inherits:
BaseResource
  • Object
show all
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

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from Starling::Resources::BaseResource

Instance Method Details

#account_numberString


21
22
23
# File 'lib/starling/resources/contact_account_resource.rb', line 21

def 
  parsed_data['accountNumber']
end

#idString


6
7
8
# File 'lib/starling/resources/contact_account_resource.rb', line 6

def id
  parsed_data['id']
end

#nameString


11
12
13
# File 'lib/starling/resources/contact_account_resource.rb', line 11

def name
  parsed_data['name']
end

#sort_codeString


26
27
28
# File 'lib/starling/resources/contact_account_resource.rb', line 26

def sort_code
  parsed_data['sortCode']
end

#typeSymbol


16
17
18
# File 'lib/starling/resources/contact_account_resource.rb', line 16

def type
  present_enum(parsed_data['type'])
end