Class: CtGov::Contact
- Inherits:
-
Object
- Object
- CtGov::Contact
- Defined in:
- lib/ct_gov/contact.rb
Instance Method Summary collapse
- #email ⇒ Object
-
#initialize(raw_contact) ⇒ Contact
constructor
A new instance of Contact.
- #name ⇒ Object
- #phone ⇒ Object
- #phone_extension ⇒ Object
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
#email ⇒ Object
20 21 22 |
# File 'lib/ct_gov/contact.rb', line 20 def email @raw_contact['email'] end |
#name ⇒ Object
8 9 10 |
# File 'lib/ct_gov/contact.rb', line 8 def name @raw_contact['last_name'] end |
#phone ⇒ Object
12 13 14 |
# File 'lib/ct_gov/contact.rb', line 12 def phone @raw_contact['phone'] end |
#phone_extension ⇒ Object
16 17 18 |
# File 'lib/ct_gov/contact.rb', line 16 def phone_extension @raw_contact['phone_ext'] end |