Class: Cufinder::Company

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

Overview

Company information model

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject

Returns the value of attribute address.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def address
  @address
end

#cityObject

Returns the value of attribute city.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def city
  @city
end

#countryObject

Returns the value of attribute country.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def country
  @country
end

#descriptionObject

Returns the value of attribute description.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def description
  @description
end

#domainObject

Returns the value of attribute domain.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def domain
  @domain
end

#emailObject

Returns the value of attribute email.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def email
  @email
end

#employeesObject

Returns the value of attribute employees.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def employees
  @employees
end

#foundedObject

Returns the value of attribute founded.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def founded
  @founded
end

#headquartersObject

Returns the value of attribute headquarters.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def headquarters
  @headquarters
end

#industryObject

Returns the value of attribute industry.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def industry
  @industry
end

#linkedin_urlObject

Returns the value of attribute linkedin_url.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def linkedin_url
  @linkedin_url
end

#locationObject

Returns the value of attribute location.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def location
  @location
end

#main_locationObject

Returns the value of attribute main_location.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def main_location
  @main_location
end

#nameObject

Returns the value of attribute name.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def name
  @name
end

#overviewObject

Returns the value of attribute overview.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def overview
  @overview
end

#phoneObject

Returns the value of attribute phone.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def phone
  @phone
end

#revenueObject

Returns the value of attribute revenue.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def revenue
  @revenue
end

#sizeObject

Returns the value of attribute size.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def size
  @size
end

#socialObject

Returns the value of attribute social.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def social
  @social
end

#stateObject

Returns the value of attribute state.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def state
  @state
end

#subsidiariesObject

Returns the value of attribute subsidiaries.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def subsidiaries
  @subsidiaries
end

#technologiesObject

Returns the value of attribute technologies.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def technologies
  @technologies
end

#typeObject

Returns the value of attribute type.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def type
  @type
end

#websiteObject

Returns the value of attribute website.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def website
  @website
end

#zip_codeObject

Returns the value of attribute zip_code.



54
55
56
# File 'lib/cufinder_ruby/types.rb', line 54

def zip_code
  @zip_code
end