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.



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

def country
  @country
end

#first_nameObject

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#industryObject

Returns the value of attribute industry.



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

def industry
  @industry
end

#last_nameObject

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

#last_update_dateObject

Returns the value of attribute last_update_date.



55
56
57
# File 'lib/snov/get_prospects_by_email.rb', line 55

def last_update_date
  @last_update_date
end

#localityObject

Returns the value of attribute locality.



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

def locality
  @locality
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#campaignsObject



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

def campaigns
  Array.wrap(@lists)
end

#campaigns=(val) ⇒ Object



101
102
103
104
105
# File 'lib/snov/get_prospects_by_email.rb', line 101

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

#current_jobObject



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

def current_job
  Array.wrap(@current_job)
end

#current_job=(val) ⇒ Object



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

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

#listsObject



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

def lists
  Array.wrap(@lists)
end

#lists=(val) ⇒ Object



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

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

#previous_jobObject



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

def previous_job
  Array.wrap(@previous_job)
end

#previous_job=(val) ⇒ Object



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

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

#socialObject



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

def social
  Array.wrap(@social)
end

#social=(val) ⇒ Object



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

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