Class: PossibleEmail::Occupation
- Inherits:
-
Object
- Object
- PossibleEmail::Occupation
- Defined in:
- lib/possible_email/profile/occupation.rb
Instance Attribute Summary collapse
-
#company ⇒ Object
readonly
Returns the value of attribute company.
-
#job_title ⇒ Object
readonly
Returns the value of attribute job_title.
Instance Method Summary collapse
-
#initialize(data) ⇒ Occupation
constructor
A new instance of Occupation.
Constructor Details
#initialize(data) ⇒ Occupation
Returns a new instance of Occupation.
5 6 7 8 |
# File 'lib/possible_email/profile/occupation.rb', line 5 def initialize(data) @job_title = data['job_title'] @company = data['company'] end |
Instance Attribute Details
#company ⇒ Object (readonly)
Returns the value of attribute company.
3 4 5 |
# File 'lib/possible_email/profile/occupation.rb', line 3 def company @company end |
#job_title ⇒ Object (readonly)
Returns the value of attribute job_title.
3 4 5 |
# File 'lib/possible_email/profile/occupation.rb', line 3 def job_title @job_title end |