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(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_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