Class: JamBase4R::Artist
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
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(element) ⇒ Artist
constructor
A new instance of Artist.
Methods included from Model
Constructor Details
#initialize(element) ⇒ Artist
Returns a new instance of Artist.
7 8 9 10 |
# File 'lib/models/artist.rb', line 7 def initialize(element) return if element.blank? build(element) end |