Class: Glassdoor::Models::Company
- Inherits:
-
Object
- Object
- Glassdoor::Models::Company
- Defined in:
- lib/glassdoor/models/company.rb
Instance Attribute Summary collapse
-
#career_opportunities_rating ⇒ Object
readonly
Returns the value of attribute career_opportunities_rating.
-
#compensation_and_benefits_rating ⇒ Object
readonly
Returns the value of attribute compensation_and_benefits_rating.
-
#culture_and_values_rating ⇒ Object
readonly
Returns the value of attribute culture_and_values_rating.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#industry ⇒ Object
readonly
Returns the value of attribute industry.
-
#logo ⇒ Object
readonly
Returns the value of attribute logo.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#overall_rating ⇒ Object
readonly
Returns the value of attribute overall_rating.
-
#recommend_to_friend_rating ⇒ Object
readonly
Returns the value of attribute recommend_to_friend_rating.
-
#review ⇒ Object
readonly
Returns the value of attribute review.
-
#sector_name ⇒ Object
readonly
Returns the value of attribute sector_name.
-
#senior_leadership_rating ⇒ Object
readonly
Returns the value of attribute senior_leadership_rating.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#work_life_balance_rating ⇒ Object
readonly
Returns the value of attribute work_life_balance_rating.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Company
constructor
A new instance of Company.
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_rating ⇒ Object (readonly)
Returns the value of attribute career_opportunities_rating.
4 5 6 |
# File 'lib/glassdoor/models/company.rb', line 4 def @career_opportunities_rating end |
#compensation_and_benefits_rating ⇒ Object (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 end |
#culture_and_values_rating ⇒ Object (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 end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/glassdoor/models/company.rb', line 4 def id @id end |
#industry ⇒ Object (readonly)
Returns the value of attribute industry.
4 5 6 |
# File 'lib/glassdoor/models/company.rb', line 4 def industry @industry end |
#logo ⇒ Object (readonly)
Returns the value of attribute logo.
4 5 6 |
# File 'lib/glassdoor/models/company.rb', line 4 def logo @logo end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/glassdoor/models/company.rb', line 4 def name @name end |
#overall_rating ⇒ Object (readonly)
Returns the value of attribute overall_rating.
4 5 6 |
# File 'lib/glassdoor/models/company.rb', line 4 def @overall_rating end |
#recommend_to_friend_rating ⇒ Object (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 end |
#review ⇒ Object (readonly)
Returns the value of attribute review.
4 5 6 |
# File 'lib/glassdoor/models/company.rb', line 4 def review @review end |
#sector_name ⇒ Object (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_rating ⇒ Object (readonly)
Returns the value of attribute senior_leadership_rating.
4 5 6 |
# File 'lib/glassdoor/models/company.rb', line 4 def @senior_leadership_rating end |
#url ⇒ Object (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_rating ⇒ Object (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 end |