Class: DefraRuby::Area::Area
- Inherits:
-
Object
- Object
- DefraRuby::Area::Area
- Defined in:
- lib/defra_ruby/area/area.rb
Instance Attribute Summary collapse
-
#area_id ⇒ Object
readonly
Returns the value of attribute area_id.
-
#area_name ⇒ Object
readonly
Returns the value of attribute area_name.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#long_name ⇒ Object
readonly
Returns the value of attribute long_name.
-
#short_name ⇒ Object
readonly
Returns the value of attribute short_name.
Instance Method Summary collapse
-
#initialize(wfs_xml_element) ⇒ Area
constructor
A new instance of Area.
Constructor Details
#initialize(wfs_xml_element) ⇒ Area
Returns a new instance of Area.
10 11 12 13 14 15 |
# File 'lib/defra_ruby/area/area.rb', line 10 def initialize(wfs_xml_element) @xml = wfs_xml_element validate_xml parse_xml end |
Instance Attribute Details
#area_id ⇒ Object (readonly)
Returns the value of attribute area_id.
8 9 10 |
# File 'lib/defra_ruby/area/area.rb', line 8 def area_id @area_id end |
#area_name ⇒ Object (readonly)
Returns the value of attribute area_name.
8 9 10 |
# File 'lib/defra_ruby/area/area.rb', line 8 def area_name @area_name end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/defra_ruby/area/area.rb', line 8 def code @code end |
#long_name ⇒ Object (readonly)
Returns the value of attribute long_name.
8 9 10 |
# File 'lib/defra_ruby/area/area.rb', line 8 def long_name @long_name end |
#short_name ⇒ Object (readonly)
Returns the value of attribute short_name.
8 9 10 |
# File 'lib/defra_ruby/area/area.rb', line 8 def short_name @short_name end |