Class: YMaps::ActionView::HtmlHelper::StaticMapPoint

Inherits:
Struct::MapPoint
  • Object
show all
Defined in:
lib/ymaps/action_view/html_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#colorObject

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



4
5
6
# File 'lib/ymaps/action_view/html_helper.rb', line 4

def color
  @color
end

#latObject

Returns the value of attribute lat

Returns:

  • (Object)

    the current value of lat



4
5
6
# File 'lib/ymaps/action_view/html_helper.rb', line 4

def lat
  @lat
end

#lngObject

Returns the value of attribute lng

Returns:

  • (Object)

    the current value of lng



4
5
6
# File 'lib/ymaps/action_view/html_helper.rb', line 4

def lng
  @lng
end

#numberObject

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



4
5
6
# File 'lib/ymaps/action_view/html_helper.rb', line 4

def number
  @number
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



4
5
6
# File 'lib/ymaps/action_view/html_helper.rb', line 4

def size
  @size
end

#styleObject

Returns the value of attribute style

Returns:

  • (Object)

    the current value of 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_lnglatObject



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_sObject



5
6
7
# File 'lib/ymaps/action_view/html_helper.rb', line 5

def to_s
  "#{gml_lnglat},#{style}#{color}#{size}#{number}"
end