Class: AteTracks::Structures::Collection
- Inherits:
-
Object
- Object
- AteTracks::Structures::Collection
- Defined in:
- lib/atetracks/structures.rb
Instance Attribute Summary collapse
-
#cover_urls ⇒ Object
Returns the value of attribute cover_urls.
-
#description ⇒ Object
Returns the value of attribute description.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#id ⇒ Object
Returns the value of attribute id.
-
#mixes_count ⇒ Object
Returns the value of attribute mixes_count.
-
#name ⇒ Object
Returns the value of attribute name.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#smart_id ⇒ Object
Returns the value of attribute smart_id.
-
#tag_list_cache ⇒ Object
Returns the value of attribute tag_list_cache.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#user ⇒ Object
Returns the value of attribute user.
-
#web_path ⇒ Object
Returns the value of attribute web_path.
Instance Method Summary collapse
-
#initialize(data) ⇒ Collection
constructor
A new instance of Collection.
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_urls ⇒ Object
Returns the value of attribute cover_urls.
257 258 259 |
# File 'lib/atetracks/structures.rb', line 257 def cover_urls @cover_urls end |
#description ⇒ Object
Returns the value of attribute description.
257 258 259 |
# File 'lib/atetracks/structures.rb', line 257 def description @description end |
#duration ⇒ Object
Returns the value of attribute duration.
257 258 259 |
# File 'lib/atetracks/structures.rb', line 257 def duration @duration end |
#id ⇒ Object
Returns the value of attribute id.
257 258 259 |
# File 'lib/atetracks/structures.rb', line 257 def id @id end |
#mixes_count ⇒ Object
Returns the value of attribute mixes_count.
257 258 259 |
# File 'lib/atetracks/structures.rb', line 257 def mixes_count @mixes_count end |
#name ⇒ Object
Returns the value of attribute name.
257 258 259 |
# File 'lib/atetracks/structures.rb', line 257 def name @name end |
#slug ⇒ Object
Returns the value of attribute slug.
257 258 259 |
# File 'lib/atetracks/structures.rb', line 257 def slug @slug end |
#smart_id ⇒ Object
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_cache ⇒ Object
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_at ⇒ Object
Returns the value of attribute updated_at.
257 258 259 |
# File 'lib/atetracks/structures.rb', line 257 def updated_at @updated_at end |
#user ⇒ Object
Returns the value of attribute user.
257 258 259 |
# File 'lib/atetracks/structures.rb', line 257 def user @user end |
#web_path ⇒ Object
Returns the value of attribute web_path.
257 258 259 |
# File 'lib/atetracks/structures.rb', line 257 def web_path @web_path end |