Class: Cufinder::Person
- Inherits:
-
Object
- Object
- Cufinder::Person
- Defined in:
- lib/cufinder_ruby/types.rb
Overview
Person information model
Instance Attribute Summary collapse
-
#certifications ⇒ Object
Returns the value of attribute certifications.
-
#company ⇒ Object
Returns the value of attribute company.
-
#connections ⇒ Object
Returns the value of attribute connections.
-
#current_job ⇒ Object
Returns the value of attribute current_job.
-
#educations ⇒ Object
Returns the value of attribute educations.
-
#experience ⇒ Object
Returns the value of attribute experience.
-
#experiences ⇒ Object
Returns the value of attribute experiences.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#full_name ⇒ Object
Returns the value of attribute full_name.
-
#interests ⇒ Object
Returns the value of attribute interests.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#location ⇒ Object
Returns the value of attribute location.
-
#logo ⇒ Object
Returns the value of attribute logo.
-
#overview ⇒ Object
Returns the value of attribute overview.
-
#skills ⇒ Object
Returns the value of attribute skills.
-
#social ⇒ Object
Returns the value of attribute social.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Person
constructor
A new instance of Person.
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
#certifications ⇒ Object
Returns the value of attribute certifications.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def certifications @certifications end |
#company ⇒ Object
Returns the value of attribute company.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def company @company end |
#connections ⇒ Object
Returns the value of attribute connections.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def connections @connections end |
#current_job ⇒ Object
Returns the value of attribute current_job.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def current_job @current_job end |
#educations ⇒ Object
Returns the value of attribute educations.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def educations @educations end |
#experience ⇒ Object
Returns the value of attribute experience.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def experience @experience end |
#experiences ⇒ Object
Returns the value of attribute experiences.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def experiences @experiences end |
#first_name ⇒ Object
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_name ⇒ Object
Returns the value of attribute full_name.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def full_name @full_name end |
#interests ⇒ Object
Returns the value of attribute interests.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def interests @interests end |
#last_name ⇒ Object
Returns the value of attribute last_name.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def last_name @last_name end |
#location ⇒ Object
Returns the value of attribute location.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def location @location end |
#logo ⇒ Object
Returns the value of attribute logo.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def logo @logo end |
#overview ⇒ Object
Returns the value of attribute overview.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def overview @overview end |
#skills ⇒ Object
Returns the value of attribute skills.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def skills @skills end |
#social ⇒ Object
Returns the value of attribute social.
126 127 128 |
# File 'lib/cufinder_ruby/types.rb', line 126 def @social end |