Class: GolfSwitch::RegionArea
- Inherits:
-
AreaResponse
- Object
- AreaResponse
- GolfSwitch::RegionArea
- Defined in:
- lib/golf_switch/region_area.rb
Instance Attribute Summary
Attributes inherited from AreaResponse
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(area_id = nil, name = nil) ⇒ RegionArea
constructor
A new instance of RegionArea.
Methods inherited from AreaResponse
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 |