Class: Google::Maps::Place
- Inherits:
-
Object
- Object
- Google::Maps::Place
- Defined in:
- lib/google_maps/place.rb
Instance Attribute Summary collapse
-
#html ⇒ Object
(also: #to_html)
readonly
Returns the value of attribute html.
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
-
#place_id ⇒ Object
readonly
Returns the value of attribute place_id.
-
#text ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute text.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data, keyword) ⇒ Place
constructor
A new instance of Place.
Constructor Details
#initialize(data, keyword) ⇒ Place
Returns a new instance of Place.
12 13 14 15 16 |
# File 'lib/google_maps/place.rb', line 12 def initialize(data, keyword) @text = data.description @place_id = data.place_id @html = highligh_keywords(data, keyword) end |
Instance Attribute Details
#html ⇒ Object (readonly) Also known as: to_html
Returns the value of attribute html.
8 9 10 |
# File 'lib/google_maps/place.rb', line 8 def html @html end |
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
8 9 10 |
# File 'lib/google_maps/place.rb', line 8 def keyword @keyword end |
#place_id ⇒ Object (readonly)
Returns the value of attribute place_id.
8 9 10 |
# File 'lib/google_maps/place.rb', line 8 def place_id @place_id end |
#text ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute text.
8 9 10 |
# File 'lib/google_maps/place.rb', line 8 def text @text end |