Class: FestivityEventList::FestivityLocation
- Inherits:
-
Object
- Object
- FestivityEventList::FestivityLocation
- Defined in:
- app/models/festivity_event_list/festivity_location.rb
Instance Attribute Summary collapse
-
#area_id ⇒ Object
readonly
Returns the value of attribute area_id.
-
#area_slug ⇒ Object
readonly
Returns the value of attribute area_slug.
-
#area_title ⇒ Object
readonly
Returns the value of attribute area_title.
-
#directions_url ⇒ Object
readonly
Returns the value of attribute directions_url.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(location_hash) ⇒ FestivityLocation
constructor
A new instance of FestivityLocation.
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_id ⇒ Object (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_slug ⇒ Object (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_title ⇒ Object (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_url ⇒ Object (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 |
#id ⇒ Object (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 |
#slug ⇒ Object (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 |
#title ⇒ Object (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 |