Class: Cufinder::Person

Inherits:
Object
  • Object
show all
Defined in:
lib/cufinder_ruby/types.rb

Overview

Person information model

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Person

Returns a new instance of Person.



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'lib/cufinder_ruby/types.rb', line 130

def initialize(data = {})
  @first_name = data["first_name"]
  @last_name = data["last_name"]
  @full_name = data["full_name"]
  @logo = data["logo"]
  @overview = data["overview"]
  @experience = data["experience"]
  @connections = data["connections"]
  @interests = data["interests"]
  @skills = data["skills"]
  @educations = data["educations"]
  @experiences = data["experiences"]
  @certifications = data["certifications"]
  @company = data["company"] ? Company.new(data["company"]) : nil
  @location = data["location"] ? PersonLocation.new(data["location"]) : nil
  @current_job = data["current_job"] ? CurrentJob.new(data["current_job"]) : nil
  @social = data["social"] ? PersonSocial.new(data["social"]) : nil
end

Instance Attribute Details

#certificationsObject

Returns the value of attribute certifications.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def certifications
  @certifications
end

#companyObject

Returns the value of attribute company.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def company
  @company
end

#connectionsObject

Returns the value of attribute connections.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def connections
  @connections
end

#current_jobObject

Returns the value of attribute current_job.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def current_job
  @current_job
end

#educationsObject

Returns the value of attribute educations.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def educations
  @educations
end

#experienceObject

Returns the value of attribute experience.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def experience
  @experience
end

#experiencesObject

Returns the value of attribute experiences.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def experiences
  @experiences
end

#first_nameObject

Returns the value of attribute first_name.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def first_name
  @first_name
end

#full_nameObject

Returns the value of attribute full_name.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def full_name
  @full_name
end

#interestsObject

Returns the value of attribute interests.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def interests
  @interests
end

#last_nameObject

Returns the value of attribute last_name.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def last_name
  @last_name
end

#locationObject

Returns the value of attribute location.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def location
  @location
end

#logoObject

Returns the value of attribute logo.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def 
  @logo
end

#overviewObject

Returns the value of attribute overview.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def overview
  @overview
end

#skillsObject

Returns the value of attribute skills.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def skills
  @skills
end

#socialObject

Returns the value of attribute social.



126
127
128
# File 'lib/cufinder_ruby/types.rb', line 126

def social
  @social
end