Class: PolyMaps::LegendItem

Inherits:
Object
  • Object
show all
Defined in:
lib/poly_maps.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#colorObject

Returns the value of attribute color.



4
5
6
# File 'lib/poly_maps.rb', line 4

def color
  @color
end

#regionObject

Returns the value of attribute region.



4
5
6
# File 'lib/poly_maps.rb', line 4

def region
  @region
end