Class: Cufinder::Company
- Inherits:
-
Object
- Object
- Cufinder::Company
- Defined in:
- lib/cufinder_ruby/types.rb
Overview
Company information model
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#description ⇒ Object
Returns the value of attribute description.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#email ⇒ Object
Returns the value of attribute email.
-
#employees ⇒ Object
Returns the value of attribute employees.
-
#founded ⇒ Object
Returns the value of attribute founded.
-
#headquarters ⇒ Object
Returns the value of attribute headquarters.
-
#industry ⇒ Object
Returns the value of attribute industry.
-
#linkedin_url ⇒ Object
Returns the value of attribute linkedin_url.
-
#location ⇒ Object
Returns the value of attribute location.
-
#main_location ⇒ Object
Returns the value of attribute main_location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#overview ⇒ Object
Returns the value of attribute overview.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#revenue ⇒ Object
Returns the value of attribute revenue.
-
#size ⇒ Object
Returns the value of attribute size.
-
#social ⇒ Object
Returns the value of attribute social.
-
#state ⇒ Object
Returns the value of attribute state.
-
#subsidiaries ⇒ Object
Returns the value of attribute subsidiaries.
-
#technologies ⇒ Object
Returns the value of attribute technologies.
-
#type ⇒ Object
Returns the value of attribute type.
-
#website ⇒ Object
Returns the value of attribute website.
-
#zip_code ⇒ Object
Returns the value of attribute zip_code.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Company
constructor
A new instance of Company.
Constructor Details
#initialize(data = {}) ⇒ Company
Returns a new instance of Company.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/cufinder_ruby/types.rb', line 59 def initialize(data = {}) @name = data["name"] @domain = data["domain"] @linkedin_url = data["linkedin_url"] @industry = data["industry"] @overview = data["overview"] @type = data["type"] @size = data["size"] @main_location = data["main_location"] ? MainLocation.new(data["main_location"]) : nil @location = data["location"] @description = data["description"] @founded = data["founded"] @revenue = data["revenue"] @employees = data["employees"] ? CompanyEmployees.new(data["employees"]) : nil @website = data["website"] @phone = data["phone"] @email = data["email"] @social = data["social"] ? CompanySocial.new(data["social"]) : nil @technologies = data["technologies"] @subsidiaries = data["subsidiaries"] @headquarters = data["headquarters"] @country = data["country"] @state = data["state"] @city = data["city"] @zip_code = data["zip_code"] @address = data["address"] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def address @address end |
#city ⇒ Object
Returns the value of attribute city.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def country @country end |
#description ⇒ Object
Returns the value of attribute description.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def description @description end |
#domain ⇒ Object
Returns the value of attribute domain.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def domain @domain end |
#email ⇒ Object
Returns the value of attribute email.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def email @email end |
#employees ⇒ Object
Returns the value of attribute employees.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def employees @employees end |
#founded ⇒ Object
Returns the value of attribute founded.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def founded @founded end |
#headquarters ⇒ Object
Returns the value of attribute headquarters.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def headquarters @headquarters end |
#industry ⇒ Object
Returns the value of attribute industry.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def industry @industry end |
#linkedin_url ⇒ Object
Returns the value of attribute linkedin_url.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def linkedin_url @linkedin_url end |
#location ⇒ Object
Returns the value of attribute location.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def location @location end |
#main_location ⇒ Object
Returns the value of attribute main_location.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def main_location @main_location end |
#name ⇒ Object
Returns the value of attribute name.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def name @name end |
#overview ⇒ Object
Returns the value of attribute overview.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def overview @overview end |
#phone ⇒ Object
Returns the value of attribute phone.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def phone @phone end |
#revenue ⇒ Object
Returns the value of attribute revenue.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def revenue @revenue end |
#size ⇒ Object
Returns the value of attribute size.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def size @size end |
#social ⇒ Object
Returns the value of attribute social.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def @social end |
#state ⇒ Object
Returns the value of attribute state.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def state @state end |
#subsidiaries ⇒ Object
Returns the value of attribute subsidiaries.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def subsidiaries @subsidiaries end |
#technologies ⇒ Object
Returns the value of attribute technologies.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def technologies @technologies end |
#type ⇒ Object
Returns the value of attribute type.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def type @type end |
#website ⇒ Object
Returns the value of attribute website.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def website @website end |
#zip_code ⇒ Object
Returns the value of attribute zip_code.
54 55 56 |
# File 'lib/cufinder_ruby/types.rb', line 54 def zip_code @zip_code end |