Class: AteTracks::Structures::ArtistDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/atetracks/structures.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ArtistDetails



85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/atetracks/structures.rb', line 85

def initialize(data)
  return nil if data.nil?
  @twitter_username = data['twitter_username']
  @official_url = data['official_url']
  @wikipedia_url = data['wikipedia_url']
  @location = data['location']
  @years_active = data['years_active']
  @name = data['name']
  @bio_intro = data['bio_intro']
  @bio_url = data['bio_url']
  @image_url = data['image_url']
  @imgix_url = data['imgix_url']
  @url = data['url']
  @info_source = InfoSource.new(data['info_source'])
end

Instance Attribute Details

#bio_introObject

Returns the value of attribute bio_intro.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def bio_intro
  @bio_intro
end

#bio_urlObject

Returns the value of attribute bio_url.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def bio_url
  @bio_url
end

#image_urlObject

Returns the value of attribute image_url.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def image_url
  @image_url
end

#imgix_urlObject

Returns the value of attribute imgix_url.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def imgix_url
  @imgix_url
end

#info_sourceObject

Returns the value of attribute info_source.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def info_source
  @info_source
end

#locationObject

Returns the value of attribute location.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def location
  @location
end

#nameObject

Returns the value of attribute name.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def name
  @name
end

#official_urlObject

Returns the value of attribute official_url.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def official_url
  @official_url
end

#twitter_usernameObject

Returns the value of attribute twitter_username.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def twitter_username
  @twitter_username
end

#urlObject

Returns the value of attribute url.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def url
  @url
end

#wikipedia_urlObject

Returns the value of attribute wikipedia_url.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def wikipedia_url
  @wikipedia_url
end

#years_activeObject

Returns the value of attribute years_active.



82
83
84
# File 'lib/atetracks/structures.rb', line 82

def years_active
  @years_active
end