Class: Ratis::LocationTypeAheadItem

Inherits:
Object
  • Object
show all
Defined in:
lib/ratis/location_type_ahead_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#areaObject

Returns the value of attribute area.



5
6
7
# File 'lib/ratis/location_type_ahead_item.rb', line 5

def area
  @area
end

#areacodeObject

Returns the value of attribute areacode.



5
6
7
# File 'lib/ratis/location_type_ahead_item.rb', line 5

def areacode
  @areacode
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/ratis/location_type_ahead_item.rb', line 5

def name
  @name
end

#postcodeObject

Returns the value of attribute postcode.



5
6
7
# File 'lib/ratis/location_type_ahead_item.rb', line 5

def postcode
  @postcode
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/ratis/location_type_ahead_item.rb', line 5

def type
  @type
end