Class: JamBase4R::Event
Constant Summary
Constants included from Model
Model::ARTISTS, Model::ARTIST_ID, Model::ARTIST_NAME, Model::EVENT_DATE, Model::EVENT_ID, Model::EVENT_URL, Model::TICKET_URL, Model::VENUE, Model::VENUE_CITY, Model::VENUE_ID, Model::VENUE_NAME, Model::VENUE_STATE, Model::VENUE_ZIP
Instance Attribute Summary collapse
-
#artists ⇒ Object
readonly
Returns the value of attribute artists.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#event_url ⇒ Object
readonly
Returns the value of attribute event_url.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#ticket_url ⇒ Object
readonly
Returns the value of attribute ticket_url.
-
#venue ⇒ Object
readonly
Returns the value of attribute venue.
Instance Method Summary collapse
-
#initialize(element) ⇒ Event
constructor
A new instance of Event.
Methods included from Model
Constructor Details
#initialize(element) ⇒ Event
8 9 10 11 |
# File 'lib/models/event.rb', line 8 def initialize(element) return if element.blank? build(element) end |
Instance Attribute Details
#artists ⇒ Object (readonly)
Returns the value of attribute artists.
6 7 8 |
# File 'lib/models/event.rb', line 6 def artists @artists end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
6 7 8 |
# File 'lib/models/event.rb', line 6 def date @date end |
#event_url ⇒ Object (readonly)
Returns the value of attribute event_url.
6 7 8 |
# File 'lib/models/event.rb', line 6 def event_url @event_url end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/models/event.rb', line 6 def id @id end |
#ticket_url ⇒ Object (readonly)
Returns the value of attribute ticket_url.
6 7 8 |
# File 'lib/models/event.rb', line 6 def ticket_url @ticket_url end |
#venue ⇒ Object (readonly)
Returns the value of attribute venue.
6 7 8 |
# File 'lib/models/event.rb', line 6 def venue @venue end |