Class: GolfSwitch::RegionArea

Inherits:
AreaResponse show all
Defined in:
lib/golf_switch/region_area.rb

Instance Attribute Summary

Attributes inherited from AreaResponse

#area_id, #countries, #name

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AreaResponse

parse_areas

Constructor Details

#initialize(area_id = nil, name = nil) ⇒ RegionArea

Returns a new instance of RegionArea.



3
4
5
6
# File 'lib/golf_switch/region_area.rb', line 3

def initialize(area_id=nil,name=nil)
  super(area_id,name)
  @region_areas = []
end

Class Method Details

.parse_region_area(area) ⇒ Object



8
9
10
11
# File 'lib/golf_switch/region_area.rb', line 8

def self.parse_region_area(area)
  golfswitch_area = RegionArea.new(area[:id],area[:nm])
  golfswitch_area
end