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) ⇒ Review

Returns a new instance of Review.



5
6
7
8
9
10
11
12
# File 'lib/google_places/review.rb', line 5

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

#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