Class: Snov::GetProspectsByEmail::ProspectResult

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/snov/get_prospects_by_email.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countryObject

Returns the value of attribute country.



50
51
52
# File 'lib/snov/get_prospects_by_email.rb', line 50

def country
  @country
end

#first_nameObject

Returns the value of attribute first_name.



50
51
52
# File 'lib/snov/get_prospects_by_email.rb', line 50

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



50
51
52
# File 'lib/snov/get_prospects_by_email.rb', line 50

def id
  @id
end

#industryObject

Returns the value of attribute industry.



50
51
52
# File 'lib/snov/get_prospects_by_email.rb', line 50

def industry
  @industry
end

#last_nameObject

Returns the value of attribute last_name.



50
51
52
# File 'lib/snov/get_prospects_by_email.rb', line 50

def last_name
  @last_name
end

#last_update_dateObject

Returns the value of attribute last_update_date.



51
52
53
# File 'lib/snov/get_prospects_by_email.rb', line 51

def last_update_date
  @last_update_date
end

#localityObject

Returns the value of attribute locality.



50
51
52
# File 'lib/snov/get_prospects_by_email.rb', line 50

def locality
  @locality
end

#nameObject

Returns the value of attribute name.



50
51
52
# File 'lib/snov/get_prospects_by_email.rb', line 50

def name
  @name
end

Instance Method Details

#campaignsObject



93
94
95
# File 'lib/snov/get_prospects_by_email.rb', line 93

def campaigns
  Array.wrap(@lists)
end

#campaigns=(val) ⇒ Object



97
98
99
100
101
# File 'lib/snov/get_prospects_by_email.rb', line 97

def campaigns=(val)
  @campaigns = Array.wrap(val).map do |rel|
    OpenStruct.new(rel)
  end
end

#current_jobObject



63
64
65
# File 'lib/snov/get_prospects_by_email.rb', line 63

def current_job
  Array.wrap(@current_job)
end

#current_job=(val) ⇒ Object



67
68
69
70
71
# File 'lib/snov/get_prospects_by_email.rb', line 67

def current_job=(val)
  @current_job = Array.wrap(val).map do |rel|
    Job.new(rel)
  end
end

#listsObject



83
84
85
# File 'lib/snov/get_prospects_by_email.rb', line 83

def lists
  Array.wrap(@lists)
end

#lists=(val) ⇒ Object



87
88
89
90
91
# File 'lib/snov/get_prospects_by_email.rb', line 87

def lists=(val)
  @lists = Array.wrap(val).map do |rel|
    List.new(rel)
  end
end

#previous_jobObject



73
74
75
# File 'lib/snov/get_prospects_by_email.rb', line 73

def previous_job
  Array.wrap(@previous_job)
end

#previous_job=(val) ⇒ Object



77
78
79
80
81
# File 'lib/snov/get_prospects_by_email.rb', line 77

def previous_job=(val)
  @previous_job = Array.wrap(val).map do |rel|
    Job.new(rel)
  end
end

#socialObject



53
54
55
# File 'lib/snov/get_prospects_by_email.rb', line 53

def social
  Array.wrap(@social)
end

#social=(val) ⇒ Object



57
58
59
60
61
# File 'lib/snov/get_prospects_by_email.rb', line 57

def social=(val)
  @social = Array.wrap(val).map do |rel|
    Social.new(rel)
  end
end