Class: AteTracks::Structures::Collection

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Collection

Returns a new instance of Collection.



260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
# File 'lib/atetracks/structures.rb', line 260

def initialize(data)
  return nil if data.nil?
  @tag_list_cache = data['tag_list_cache']
  @cover_urls = data['cover_urls']
  @duration = data['duration']
  @user = data['user']
  @id = data['id']
  @smart_id = data['smart_id']
  @name = data['name']
  @slug = data['slug']
  @mixes_count = data['mixes_count']
  @web_path = data['web_path']
  @description = data['description']
  @updated_at = data['updated_at']
end

Instance Attribute Details

#cover_urlsObject

Returns the value of attribute cover_urls.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def cover_urls
  @cover_urls
end

#descriptionObject

Returns the value of attribute description.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def description
  @description
end

#durationObject

Returns the value of attribute duration.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def duration
  @duration
end

#idObject

Returns the value of attribute id.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def id
  @id
end

#mixes_countObject

Returns the value of attribute mixes_count.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def mixes_count
  @mixes_count
end

#nameObject

Returns the value of attribute name.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def name
  @name
end

#slugObject

Returns the value of attribute slug.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def slug
  @slug
end

#smart_idObject

Returns the value of attribute smart_id.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def smart_id
  @smart_id
end

#tag_list_cacheObject

Returns the value of attribute tag_list_cache.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def tag_list_cache
  @tag_list_cache
end

#updated_atObject

Returns the value of attribute updated_at.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def updated_at
  @updated_at
end

#userObject

Returns the value of attribute user.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def user
  @user
end

#web_pathObject

Returns the value of attribute web_path.



257
258
259
# File 'lib/atetracks/structures.rb', line 257

def web_path
  @web_path
end