class AteTracks::Structures::Mix
Attributes
artists[RW]
certification[RW]
cover_urls[RW]
description[RW]
description_html[RW]
duration[RW]
first_published_at[RW]
first_published_at_timestamp[RW]
genres[RW]
has_artists[RW]
has_genres[RW]
id[RW]
is_promoted[RW]
likes_count[RW]
name[RW]
nsfw[RW]
path[RW]
plays_count[RW]
published[RW]
tag_list_cache[RW]
tracks_count[RW]
user[RW]
web_path[RW]
Public Class Methods
new(data)
click to toggle source
# 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'] @first_published_at_timestamp = 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