Class: MultiformatCV::Contact
- Inherits:
-
Object
- Object
- MultiformatCV::Contact
- Defined in:
- lib/multiformatcv/contact.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#links ⇒ Object
Hash of links.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ Contact
constructor
Create Contact instance.
Constructor Details
#initialize(h = {}) ⇒ Contact
Create Contact instance
Example:
contact = MultiformatCV::Contact.new(title: 'Accountant', name: 'John Doe')
25 26 27 28 29 30 31 |
# File 'lib/multiformatcv/contact.rb', line 25 def initialize(h = {}) @name = h['name'] @title = h['title'] @email = h['email'] @phone = h['phone'] @links = h['links'] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
2 3 4 |
# File 'lib/multiformatcv/contact.rb', line 2 def email @email end |
#links ⇒ Object
Hash of links
Example:
links = { github: 'https://www.github.com/john.doe/personal-dashboard' }
11 12 13 |
# File 'lib/multiformatcv/contact.rb', line 11 def links @links end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/multiformatcv/contact.rb', line 2 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
2 3 4 |
# File 'lib/multiformatcv/contact.rb', line 2 def phone @phone end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/multiformatcv/contact.rb', line 2 def title @title end |