Class: Nineflats::Review
Instance Attribute Summary collapse
-
#language ⇒ Object
Returns the value of attribute language.
-
#place_stars ⇒ Object
Returns the value of attribute place_stars.
-
#place_text ⇒ Object
Returns the value of attribute place_text.
-
#user_text ⇒ Object
Returns the value of attribute user_text.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(json) ⇒ Review
constructor
A new instance of Review.
Methods inherited from Base
client_app_key, client_app_key=, object_link
Constructor Details
#initialize(json) ⇒ Review
Returns a new instance of Review.
5 6 7 8 9 10 11 12 13 |
# File 'lib/nineflats-api/review.rb', line 5 def initialize(json) @raw_data = json review = json.first[1] @user_text = review["user_text"] @place_text = review["place_text"] @place_stars = review["place_stars"] @language = review["language"] end |
Instance Attribute Details
#language ⇒ Object
Returns the value of attribute language.
3 4 5 |
# File 'lib/nineflats-api/review.rb', line 3 def language @language end |
#place_stars ⇒ Object
Returns the value of attribute place_stars.
3 4 5 |
# File 'lib/nineflats-api/review.rb', line 3 def place_stars @place_stars end |
#place_text ⇒ Object
Returns the value of attribute place_text.
3 4 5 |
# File 'lib/nineflats-api/review.rb', line 3 def place_text @place_text end |
#user_text ⇒ Object
Returns the value of attribute user_text.
3 4 5 |
# File 'lib/nineflats-api/review.rb', line 3 def user_text @user_text end |