Class: GooglePlaces::Review

Inherits:
Object
  • Object
show all
Defined in:
lib/google_places/review.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(rating, type, author_name, author_url, text, time, profile_photo_url)
  @rating            = rating
  @type              = type
  @author_name       = author_name
  @author_url        = author_url
  @text              = text
  @time              = time
  @profile_photo_url = profile_photo_url
end

Instance Attribute Details

#author_nameObject

Returns the value of attribute author_name.



3
4
5
# File 'lib/google_places/review.rb', line 3

def author_name
  @author_name
end

#author_urlObject

Returns the value of attribute author_url.



3
4
5
# File 'lib/google_places/review.rb', line 3

def author_url
  @author_url
end

#profile_photo_urlObject

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

#ratingObject

Returns the value of attribute rating.



3
4
5
# File 'lib/google_places/review.rb', line 3

def rating
  @rating
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/google_places/review.rb', line 3

def text
  @text
end

#timeObject

Returns the value of attribute time.



3
4
5
# File 'lib/google_places/review.rb', line 3

def time
  @time
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/google_places/review.rb', line 3

def type
  @type
end