Class: FestivityEventList::FestivityLocation

Inherits:
Object
  • Object
show all
Defined in:
app/models/festivity_event_list/festivity_location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location_hash) ⇒ FestivityLocation

Returns a new instance of FestivityLocation.



5
6
7
8
9
10
11
12
13
# File 'app/models/festivity_event_list/festivity_location.rb', line 5

def initialize(location_hash)
  @id = location_hash[:id]
  @title = location_hash[:title]
  @slug = location_hash[:slug]
  @directions_url = location_hash[:directions_url]
  @area_id = location_hash[:area_id]
  @area_title = location_hash[:area_title]
  @area_slug = location_hash[:area_slug]
end

Instance Attribute Details

#area_idObject (readonly)

Returns the value of attribute area_id.



3
4
5
# File 'app/models/festivity_event_list/festivity_location.rb', line 3

def area_id
  @area_id
end

#area_slugObject (readonly)

Returns the value of attribute area_slug.



3
4
5
# File 'app/models/festivity_event_list/festivity_location.rb', line 3

def area_slug
  @area_slug
end

#area_titleObject (readonly)

Returns the value of attribute area_title.



3
4
5
# File 'app/models/festivity_event_list/festivity_location.rb', line 3

def area_title
  @area_title
end

#directions_urlObject (readonly)

Returns the value of attribute directions_url.



3
4
5
# File 'app/models/festivity_event_list/festivity_location.rb', line 3

def directions_url
  @directions_url
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'app/models/festivity_event_list/festivity_location.rb', line 3

def id
  @id
end

#slugObject (readonly)

Returns the value of attribute slug.



3
4
5
# File 'app/models/festivity_event_list/festivity_location.rb', line 3

def slug
  @slug
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'app/models/festivity_event_list/festivity_location.rb', line 3

def title
  @title
end