Class: GooglePlaces::Review
- Inherits:
-
Object
- Object
- GooglePlaces::Review
- Defined in:
- lib/google_places/review.rb
Instance Attribute Summary collapse
-
#author_name ⇒ Object
Returns the value of attribute author_name.
-
#author_url ⇒ Object
Returns the value of attribute author_url.
-
#profile_photo_url ⇒ Object
Returns the value of attribute profile_photo_url.
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#text ⇒ Object
Returns the value of attribute text.
-
#time ⇒ Object
Returns the value of attribute time.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(rating, type, author_name, author_url, text, time, profile_photo_url) ⇒ Review
constructor
A new instance of Review.
Constructor Details
#initialize(rating, type, author_name, author_url, text, time, profile_photo_url) ⇒ Review
Returns a new instance of Review.
5 6 7 8 9 10 11 12 13 |
# File 'lib/google_places/review.rb', line 5 def initialize(, type, , , text, time, profile_photo_url) @rating = @type = type @author_name = @author_url = @text = text @time = time @profile_photo_url = profile_photo_url end |
Instance Attribute Details
#author_name ⇒ Object
Returns the value of attribute author_name.
3 4 5 |
# File 'lib/google_places/review.rb', line 3 def @author_name end |
#author_url ⇒ Object
Returns the value of attribute author_url.
3 4 5 |
# File 'lib/google_places/review.rb', line 3 def @author_url end |
#profile_photo_url ⇒ Object
Returns the value of attribute profile_photo_url.
3 4 5 |
# File 'lib/google_places/review.rb', line 3 def profile_photo_url @profile_photo_url end |
#rating ⇒ Object
Returns the value of attribute rating.
3 4 5 |
# File 'lib/google_places/review.rb', line 3 def @rating end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/google_places/review.rb', line 3 def text @text end |
#time ⇒ Object
Returns the value of attribute time.
3 4 5 |
# File 'lib/google_places/review.rb', line 3 def time @time end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/google_places/review.rb', line 3 def type @type end |