Class: Glassdoor::Models::Review
- Inherits:
-
Object
- Object
- Glassdoor::Models::Review
- Defined in:
- lib/glassdoor/models/review.rb
Instance Attribute Summary collapse
-
#cons ⇒ Object
readonly
Returns the value of attribute cons.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#headline ⇒ Object
readonly
Returns the value of attribute headline.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#job_title ⇒ Object
readonly
Returns the value of attribute job_title.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#logo ⇒ Object
readonly
Returns the value of attribute logo.
-
#overall ⇒ Object
readonly
Returns the value of attribute overall.
-
#pros ⇒ Object
readonly
Returns the value of attribute pros.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Review
constructor
A new instance of Review.
Constructor Details
#initialize(args = {}) ⇒ Review
Returns a new instance of Review.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/glassdoor/models/review.rb', line 8 def initialize(args = {}) return if args.nil? @id = args['id'] || '' @date = args['reviewDateTime'] || '' @job_title = args['jobTitle'] || '' @industry = args['industry'] || '' @location = args['location'] @headline = args['headline'] @pros = args['pros'] @cons = args['cons'] @overall = args['overall'].to_f end |
Instance Attribute Details
#cons ⇒ Object (readonly)
Returns the value of attribute cons.
4 5 6 |
# File 'lib/glassdoor/models/review.rb', line 4 def cons @cons end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
4 5 6 |
# File 'lib/glassdoor/models/review.rb', line 4 def date @date end |
#headline ⇒ Object (readonly)
Returns the value of attribute headline.
4 5 6 |
# File 'lib/glassdoor/models/review.rb', line 4 def headline @headline end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/glassdoor/models/review.rb', line 4 def id @id end |
#job_title ⇒ Object (readonly)
Returns the value of attribute job_title.
4 5 6 |
# File 'lib/glassdoor/models/review.rb', line 4 def job_title @job_title end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
4 5 6 |
# File 'lib/glassdoor/models/review.rb', line 4 def location @location end |
#logo ⇒ Object (readonly)
Returns the value of attribute logo.
4 5 6 |
# File 'lib/glassdoor/models/review.rb', line 4 def logo @logo end |
#overall ⇒ Object (readonly)
Returns the value of attribute overall.
4 5 6 |
# File 'lib/glassdoor/models/review.rb', line 4 def overall @overall end |
#pros ⇒ Object (readonly)
Returns the value of attribute pros.
4 5 6 |
# File 'lib/glassdoor/models/review.rb', line 4 def pros @pros end |