Class: AteTracks::Structures::ArtistDetails
- Inherits:
-
Object
- Object
- AteTracks::Structures::ArtistDetails
- Defined in:
- lib/atetracks/structures.rb
Instance Attribute Summary collapse
-
#bio_intro ⇒ Object
Returns the value of attribute bio_intro.
-
#bio_url ⇒ Object
Returns the value of attribute bio_url.
-
#image_url ⇒ Object
Returns the value of attribute image_url.
-
#imgix_url ⇒ Object
Returns the value of attribute imgix_url.
-
#info_source ⇒ Object
Returns the value of attribute info_source.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#official_url ⇒ Object
Returns the value of attribute official_url.
-
#twitter_username ⇒ Object
Returns the value of attribute twitter_username.
-
#url ⇒ Object
Returns the value of attribute url.
-
#wikipedia_url ⇒ Object
Returns the value of attribute wikipedia_url.
-
#years_active ⇒ Object
Returns the value of attribute years_active.
Instance Method Summary collapse
-
#initialize(data) ⇒ ArtistDetails
constructor
A new instance of ArtistDetails.
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_intro ⇒ Object
Returns the value of attribute bio_intro.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def bio_intro @bio_intro end |
#bio_url ⇒ Object
Returns the value of attribute bio_url.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def bio_url @bio_url end |
#image_url ⇒ Object
Returns the value of attribute image_url.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def image_url @image_url end |
#imgix_url ⇒ Object
Returns the value of attribute imgix_url.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def imgix_url @imgix_url end |
#info_source ⇒ Object
Returns the value of attribute info_source.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def info_source @info_source end |
#location ⇒ Object
Returns the value of attribute location.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def name @name end |
#official_url ⇒ Object
Returns the value of attribute official_url.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def official_url @official_url end |
#twitter_username ⇒ Object
Returns the value of attribute twitter_username.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def twitter_username @twitter_username end |
#url ⇒ Object
Returns the value of attribute url.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def url @url end |
#wikipedia_url ⇒ Object
Returns the value of attribute wikipedia_url.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def wikipedia_url @wikipedia_url end |
#years_active ⇒ Object
Returns the value of attribute years_active.
82 83 84 |
# File 'lib/atetracks/structures.rb', line 82 def years_active @years_active end |