Class: DefraRuby::Area::Area

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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_nameObject (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

#codeObject (readonly)

Returns the value of attribute code.



8
9
10
# File 'lib/defra_ruby/area/area.rb', line 8

def code
  @code
end

#long_nameObject (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_nameObject (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