Class: YMaps::ActionView::HtmlHelper::StaticMapPoint
- Inherits:
-
Struct::MapPoint
- Object
- Struct::MapPoint
- YMaps::ActionView::HtmlHelper::StaticMapPoint
- Defined in:
- lib/ymaps/action_view/html_helper.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#lng ⇒ Object
Returns the value of attribute lng.
-
#number ⇒ Object
Returns the value of attribute number.
-
#size ⇒ Object
Returns the value of attribute size.
-
#style ⇒ Object
Returns the value of attribute style.
Instance Method Summary collapse
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color
4 5 6 |
# File 'lib/ymaps/action_view/html_helper.rb', line 4 def color @color end |
#lat ⇒ Object
Returns the value of attribute lat
4 5 6 |
# File 'lib/ymaps/action_view/html_helper.rb', line 4 def lat @lat end |
#lng ⇒ Object
Returns the value of attribute lng
4 5 6 |
# File 'lib/ymaps/action_view/html_helper.rb', line 4 def lng @lng end |
#number ⇒ Object
Returns the value of attribute number
4 5 6 |
# File 'lib/ymaps/action_view/html_helper.rb', line 4 def number @number end |
#size ⇒ Object
Returns the value of attribute size
4 5 6 |
# File 'lib/ymaps/action_view/html_helper.rb', line 4 def size @size end |
#style ⇒ Object
Returns the value of attribute style
4 5 6 |
# File 'lib/ymaps/action_view/html_helper.rb', line 4 def style @style end |
Instance Method Details
#attributes=(attrs) ⇒ Object
17 18 19 20 21 |
# File 'lib/ymaps/action_view/html_helper.rb', line 17 def attributes=(attrs) attrs.each do |key, value| self[key] = value end end |
#gml_lnglat ⇒ Object
9 10 11 |
# File 'lib/ymaps/action_view/html_helper.rb', line 9 def gml_lnglat @gml_lnglat ||= "#{lng},#{lat}" end |
#gml_lnglat=(latlng) ⇒ Object
13 14 15 |
# File 'lib/ymaps/action_view/html_helper.rb', line 13 def gml_lnglat=(latlng) @gml_lnglat = latlng end |
#to_s ⇒ Object
5 6 7 |
# File 'lib/ymaps/action_view/html_helper.rb', line 5 def to_s "#{gml_lnglat},#{style}#{color}#{size}#{number}" end |