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(area_record) ⇒ Area
constructor
A new instance of Area.
Constructor Details
#initialize(area_record) ⇒ Area
Returns a new instance of Area.
10 11 12 13 14 15 |
# File 'lib/defra_ruby/area/area.rb', line 10 def initialize(area_record) @area_record = area_record validate_area_record parse_area_record 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 |