Class: EdmTrain::Artist
- Inherits:
-
Object
- Object
- EdmTrain::Artist
- Defined in:
- lib/edm_train/artist.rb
Instance Attribute Summary collapse
-
#b2b_ind ⇒ Object
readonly
Returns the value of attribute b2b_ind.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(raw_artist) ⇒ Artist
constructor
A new instance of Artist.
Constructor Details
#initialize(raw_artist) ⇒ Artist
Returns a new instance of Artist.
7 8 9 10 11 12 |
# File 'lib/edm_train/artist.rb', line 7 def initialize(raw_artist) @id = raw_artist['id'] @name = raw_artist['name'] @link = raw_artist['link'] @b2b_ind = raw_artist['b2bInd'] end |
Instance Attribute Details
#b2b_ind ⇒ Object (readonly)
Returns the value of attribute b2b_ind.
5 6 7 |
# File 'lib/edm_train/artist.rb', line 5 def b2b_ind @b2b_ind end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/edm_train/artist.rb', line 5 def id @id end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
5 6 7 |
# File 'lib/edm_train/artist.rb', line 5 def link @link end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/edm_train/artist.rb', line 5 def name @name end |