Class: Ratis::LocationTypeAheadItem
- Inherits:
-
Object
- Object
- Ratis::LocationTypeAheadItem
- Defined in:
- lib/ratis/location_type_ahead_item.rb
Instance Attribute Summary collapse
-
#area ⇒ Object
Returns the value of attribute area.
-
#areacode ⇒ Object
Returns the value of attribute areacode.
-
#name ⇒ Object
Returns the value of attribute name.
-
#postcode ⇒ Object
Returns the value of attribute postcode.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params) ⇒ LocationTypeAheadItem
constructor
A new instance of LocationTypeAheadItem.
Constructor Details
#initialize(params) ⇒ LocationTypeAheadItem
Returns a new instance of LocationTypeAheadItem.
7 8 9 10 11 12 13 |
# File 'lib/ratis/location_type_ahead_item.rb', line 7 def initialize(params) @name = params[:name] @area = params[:area] @areacode = params[:areacode] @postcode = params[:postcode] @type = params[:type] end |
Instance Attribute Details
#area ⇒ Object
Returns the value of attribute area.
5 6 7 |
# File 'lib/ratis/location_type_ahead_item.rb', line 5 def area @area end |
#areacode ⇒ Object
Returns the value of attribute areacode.
5 6 7 |
# File 'lib/ratis/location_type_ahead_item.rb', line 5 def areacode @areacode end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/ratis/location_type_ahead_item.rb', line 5 def name @name end |
#postcode ⇒ Object
Returns the value of attribute postcode.
5 6 7 |
# File 'lib/ratis/location_type_ahead_item.rb', line 5 def postcode @postcode end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/ratis/location_type_ahead_item.rb', line 5 def type @type end |