Class: OldPlaid::Information

Inherits:
Object
  • Object
show all
Defined in:
lib/old_plaid/models/info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Information

Returns a new instance of Information.



5
6
7
8
9
10
# File 'lib/old_plaid/models/info.rb', line 5

def initialize(hash)
  @names = hash['names']
  @emails = hash['emails']
  @phone_numbers = hash['phone_numbers']
  @addresses = hash['addresses']
end

Instance Attribute Details

#addressesObject

Returns the value of attribute addresses.



3
4
5
# File 'lib/old_plaid/models/info.rb', line 3

def addresses
  @addresses
end

#emailsObject

Returns the value of attribute emails.



3
4
5
# File 'lib/old_plaid/models/info.rb', line 3

def emails
  @emails
end

#namesObject

Returns the value of attribute names.



3
4
5
# File 'lib/old_plaid/models/info.rb', line 3

def names
  @names
end

#phone_numbersObject

Returns the value of attribute phone_numbers.



3
4
5
# File 'lib/old_plaid/models/info.rb', line 3

def phone_numbers
  @phone_numbers
end