Class: AteTracks::Structures::Mix
- Inherits:
-
Object
- Object
- AteTracks::Structures::Mix
- Defined in:
- lib/atetracks/structures.rb
Instance Attribute Summary collapse
-
#artists ⇒ Object
Returns the value of attribute artists.
-
#certification ⇒ Object
Returns the value of attribute certification.
-
#cover_urls ⇒ Object
Returns the value of attribute cover_urls.
-
#description ⇒ Object
Returns the value of attribute description.
-
#description_html ⇒ Object
Returns the value of attribute description_html.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#first_published_at ⇒ Object
Returns the value of attribute first_published_at.
-
#first_published_at_timestamp ⇒ Object
Returns the value of attribute first_published_at_timestamp.
-
#genres ⇒ Object
Returns the value of attribute genres.
-
#has_artists ⇒ Object
Returns the value of attribute has_artists.
-
#has_genres ⇒ Object
Returns the value of attribute has_genres.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_promoted ⇒ Object
Returns the value of attribute is_promoted.
-
#likes_count ⇒ Object
Returns the value of attribute likes_count.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nsfw ⇒ Object
Returns the value of attribute nsfw.
-
#path ⇒ Object
Returns the value of attribute path.
-
#plays_count ⇒ Object
Returns the value of attribute plays_count.
-
#published ⇒ Object
Returns the value of attribute published.
-
#tag_list_cache ⇒ Object
Returns the value of attribute tag_list_cache.
-
#tracks_count ⇒ Object
Returns the value of attribute tracks_count.
-
#user ⇒ Object
Returns the value of attribute user.
-
#web_path ⇒ Object
Returns the value of attribute web_path.
Instance Method Summary collapse
-
#initialize(data) ⇒ Mix
constructor
A new instance of Mix.
Constructor Details
#initialize(data) ⇒ Mix
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/atetracks/structures.rb', line 132 def initialize(data) return nil if data.nil? @description_html = data['description_html'] @likes_count = data['likes_count'] @certification = data['certification'] @user = User.new(data['user']) @duration = data['duration'] @tracks_count = data['tracks_count'] @nsfw = data['nsfw'] @genres = data['genres'] @artists = data['artists'] @id = data['id'] @published = data['published'] @cover_urls = CoverURLs.new(data['cover_urls']) @description = data['description'] @plays_count = data['plays_count'] @tag_list_cache = data['tag_list_cache'] @first_published_at = data['first_published_at'] = data['first_published_at_timestamp'] @is_promoted = data['is_promoted'] @has_genres = data['has_genres'] @has_artists = data['has_artists'] @name = data['name'] @path = data['path'] @web_path = data['web_path'] end |
Instance Attribute Details
#artists ⇒ Object
Returns the value of attribute artists.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def artists @artists end |
#certification ⇒ Object
Returns the value of attribute certification.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def certification @certification end |
#cover_urls ⇒ Object
Returns the value of attribute cover_urls.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def cover_urls @cover_urls end |
#description ⇒ Object
Returns the value of attribute description.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def description @description end |
#description_html ⇒ Object
Returns the value of attribute description_html.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def description_html @description_html end |
#duration ⇒ Object
Returns the value of attribute duration.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def duration @duration end |
#first_published_at ⇒ Object
Returns the value of attribute first_published_at.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def first_published_at @first_published_at end |
#first_published_at_timestamp ⇒ Object
Returns the value of attribute first_published_at_timestamp.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def end |
#genres ⇒ Object
Returns the value of attribute genres.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def genres @genres end |
#has_artists ⇒ Object
Returns the value of attribute has_artists.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def has_artists @has_artists end |
#has_genres ⇒ Object
Returns the value of attribute has_genres.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def has_genres @has_genres end |
#id ⇒ Object
Returns the value of attribute id.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def id @id end |
#is_promoted ⇒ Object
Returns the value of attribute is_promoted.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def is_promoted @is_promoted end |
#likes_count ⇒ Object
Returns the value of attribute likes_count.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def likes_count @likes_count end |
#name ⇒ Object
Returns the value of attribute name.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def name @name end |
#nsfw ⇒ Object
Returns the value of attribute nsfw.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def nsfw @nsfw end |
#path ⇒ Object
Returns the value of attribute path.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def path @path end |
#plays_count ⇒ Object
Returns the value of attribute plays_count.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def plays_count @plays_count end |
#published ⇒ Object
Returns the value of attribute published.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def published @published end |
#tag_list_cache ⇒ Object
Returns the value of attribute tag_list_cache.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def tag_list_cache @tag_list_cache end |
#tracks_count ⇒ Object
Returns the value of attribute tracks_count.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def tracks_count @tracks_count end |
#user ⇒ Object
Returns the value of attribute user.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def user @user end |
#web_path ⇒ Object
Returns the value of attribute web_path.
127 128 129 |
# File 'lib/atetracks/structures.rb', line 127 def web_path @web_path end |