Class: Glassdoor::Models::Company

Inherits:
Object
  • Object
show all
Defined in:
lib/glassdoor/models/company.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Company

Returns a new instance of Company.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/glassdoor/models/company.rb', line 9

def initialize(args = {})
  return if args.nil?
  @id                               = args['id'] || ''
  @name                             = args['name'] || ''
  @url                              = args['website'] || ''
  @industry                         = args['industry'] || ''
  @sector_name                      = args['sectorName'] || ''
  @overall_rating                   = args['overallRating'].to_f
  @culture_and_values_rating        = args['cultureAndValuesRating'].to_f
  @senior_leadership_rating         = args['seniorLeadershipRating'].to_f
  @compensation_and_benefits_rating = args['compensationAndBenefitsRating'].to_f
  @career_opportunities_rating      = args['careerOpportunitiesRating'].to_f
  @work_life_balance_rating         = args['workLifeBalanceRating'].to_f
  @recommend_to_friend_rating       = args['recommendToFriendRating'].to_f
  @logo                             = args['squareLogo'] || ''
  @review                           = Models::Review.new(args['featuredReview'] || nil)
end

Instance Attribute Details

#career_opportunities_ratingObject (readonly)

Returns the value of attribute career_opportunities_rating.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def career_opportunities_rating
  @career_opportunities_rating
end

#compensation_and_benefits_ratingObject (readonly)

Returns the value of attribute compensation_and_benefits_rating.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def compensation_and_benefits_rating
  @compensation_and_benefits_rating
end

#culture_and_values_ratingObject (readonly)

Returns the value of attribute culture_and_values_rating.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def culture_and_values_rating
  @culture_and_values_rating
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def id
  @id
end

#industryObject (readonly)

Returns the value of attribute industry.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def industry
  @industry
end

#logoObject (readonly)

Returns the value of attribute logo.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def 
  @logo
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def name
  @name
end

#overall_ratingObject (readonly)

Returns the value of attribute overall_rating.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def overall_rating
  @overall_rating
end

#recommend_to_friend_ratingObject (readonly)

Returns the value of attribute recommend_to_friend_rating.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def recommend_to_friend_rating
  @recommend_to_friend_rating
end

#reviewObject (readonly)

Returns the value of attribute review.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def review
  @review
end

#sector_nameObject (readonly)

Returns the value of attribute sector_name.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def sector_name
  @sector_name
end

#senior_leadership_ratingObject (readonly)

Returns the value of attribute senior_leadership_rating.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def senior_leadership_rating
  @senior_leadership_rating
end

#urlObject (readonly)

Returns the value of attribute url.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def url
  @url
end

#work_life_balance_ratingObject (readonly)

Returns the value of attribute work_life_balance_rating.



4
5
6
# File 'lib/glassdoor/models/company.rb', line 4

def work_life_balance_rating
  @work_life_balance_rating
end