Class: PossibleEmail::Occupation

Inherits:
Object
  • Object
show all
Defined in:
lib/possible_email/profile/occupation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#companyObject (readonly)

Returns the value of attribute company.



3
4
5
# File 'lib/possible_email/profile/occupation.rb', line 3

def company
  @company
end

#job_titleObject (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