Class: EdmTrain::Artist

Inherits:
Object
  • Object
show all
Defined in:
lib/edm_train/artist.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_indObject (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

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/edm_train/artist.rb', line 5

def id
  @id
end

Returns the value of attribute link.



5
6
7
# File 'lib/edm_train/artist.rb', line 5

def link
  @link
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/edm_train/artist.rb', line 5

def name
  @name
end