Class: AteTracks::Structures::Mix

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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']
  @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

Instance Attribute Details

#artistsObject

Returns the value of attribute artists.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def artists
  @artists
end

#certificationObject

Returns the value of attribute certification.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def certification
  @certification
end

#cover_urlsObject

Returns the value of attribute cover_urls.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def cover_urls
  @cover_urls
end

#descriptionObject

Returns the value of attribute description.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def description
  @description
end

#description_htmlObject

Returns the value of attribute description_html.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def description_html
  @description_html
end

#durationObject

Returns the value of attribute duration.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def duration
  @duration
end

#first_published_atObject

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_timestampObject

Returns the value of attribute first_published_at_timestamp.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def first_published_at_timestamp
  @first_published_at_timestamp
end

#genresObject

Returns the value of attribute genres.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def genres
  @genres
end

#has_artistsObject

Returns the value of attribute has_artists.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def has_artists
  @has_artists
end

#has_genresObject

Returns the value of attribute has_genres.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def has_genres
  @has_genres
end

#idObject

Returns the value of attribute id.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def id
  @id
end

#is_promotedObject

Returns the value of attribute is_promoted.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def is_promoted
  @is_promoted
end

#likes_countObject

Returns the value of attribute likes_count.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def likes_count
  @likes_count
end

#nameObject

Returns the value of attribute name.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def name
  @name
end

#nsfwObject

Returns the value of attribute nsfw.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def nsfw
  @nsfw
end

#pathObject

Returns the value of attribute path.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def path
  @path
end

#plays_countObject

Returns the value of attribute plays_count.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def plays_count
  @plays_count
end

#publishedObject

Returns the value of attribute published.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def published
  @published
end

#tag_list_cacheObject

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_countObject

Returns the value of attribute tracks_count.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def tracks_count
  @tracks_count
end

#userObject

Returns the value of attribute user.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def user
  @user
end

#web_pathObject

Returns the value of attribute web_path.



127
128
129
# File 'lib/atetracks/structures.rb', line 127

def web_path
  @web_path
end