Class: CtGov::Contact

Inherits:
Object
  • Object
show all
Defined in:
lib/ct_gov/contact.rb

Instance Method Summary collapse

Constructor Details

#initialize(raw_contact) ⇒ Contact

Returns a new instance of Contact.



4
5
6
# File 'lib/ct_gov/contact.rb', line 4

def initialize(raw_contact)
  @raw_contact = raw_contact
end

Instance Method Details

#emailObject



20
21
22
# File 'lib/ct_gov/contact.rb', line 20

def email
  @raw_contact['email']
end

#nameObject



8
9
10
# File 'lib/ct_gov/contact.rb', line 8

def name
  @raw_contact['last_name']
end

#phoneObject



12
13
14
# File 'lib/ct_gov/contact.rb', line 12

def phone
  @raw_contact['phone']
end

#phone_extensionObject



16
17
18
# File 'lib/ct_gov/contact.rb', line 16

def phone_extension
  @raw_contact['phone_ext']
end