Class: PolyMaps::LegendItem
- Inherits:
-
Object
- Object
- PolyMaps::LegendItem
- Defined in:
- lib/poly_maps.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
-
#initialize(color, region) ⇒ LegendItem
constructor
A new instance of LegendItem.
Constructor Details
#initialize(color, region) ⇒ LegendItem
Returns a new instance of LegendItem.
5 6 7 8 |
# File 'lib/poly_maps.rb', line 5 def initialize(color, region) @color = color @region = region end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
4 5 6 |
# File 'lib/poly_maps.rb', line 4 def color @color end |
#region ⇒ Object
Returns the value of attribute region.
4 5 6 |
# File 'lib/poly_maps.rb', line 4 def region @region end |