Class: AteTracks::Structures::UserMixes
- Inherits:
-
Object
- Object
- AteTracks::Structures::UserMixes
- Defined in:
- lib/atetracks/structures.rb
Instance Attribute Summary collapse
-
#mix_set_id ⇒ Object
Returns the value of attribute mix_set_id.
-
#mixes ⇒ Object
Returns the value of attribute mixes.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pagination ⇒ Object
Returns the value of attribute pagination.
-
#path ⇒ Object
Returns the value of attribute path.
-
#smart_id ⇒ Object
Returns the value of attribute smart_id.
-
#smart_type ⇒ Object
Returns the value of attribute smart_type.
-
#sort ⇒ Object
Returns the value of attribute sort.
-
#web_path ⇒ Object
Returns the value of attribute web_path.
Instance Method Summary collapse
-
#initialize(data) ⇒ UserMixes
constructor
A new instance of UserMixes.
Constructor Details
#initialize(data) ⇒ UserMixes
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/atetracks/structures.rb', line 183 def initialize(data) return nil if data.nil? @mixes = [] @pagination = Pagination.new(data['pagination']) @smart_id = data['smart_id'] @smart_type = data['smart_type'] @path = data['path'] @name = data['name'] @web_path = data['web_path'] @sort = data['sort'] @mix_set_id = data['mix_set_id'] if Structures::not_empty?(data['mixes']) @mixes = Structures::populate(data['mixes'], Mix) end end |
Instance Attribute Details
#mix_set_id ⇒ Object
Returns the value of attribute mix_set_id.
181 182 183 |
# File 'lib/atetracks/structures.rb', line 181 def mix_set_id @mix_set_id end |
#mixes ⇒ Object
Returns the value of attribute mixes.
181 182 183 |
# File 'lib/atetracks/structures.rb', line 181 def mixes @mixes end |
#name ⇒ Object
Returns the value of attribute name.
181 182 183 |
# File 'lib/atetracks/structures.rb', line 181 def name @name end |
#pagination ⇒ Object
Returns the value of attribute pagination.
181 182 183 |
# File 'lib/atetracks/structures.rb', line 181 def pagination @pagination end |
#path ⇒ Object
Returns the value of attribute path.
181 182 183 |
# File 'lib/atetracks/structures.rb', line 181 def path @path end |
#smart_id ⇒ Object
Returns the value of attribute smart_id.
181 182 183 |
# File 'lib/atetracks/structures.rb', line 181 def smart_id @smart_id end |
#smart_type ⇒ Object
Returns the value of attribute smart_type.
181 182 183 |
# File 'lib/atetracks/structures.rb', line 181 def smart_type @smart_type end |
#sort ⇒ Object
Returns the value of attribute sort.
181 182 183 |
# File 'lib/atetracks/structures.rb', line 181 def sort @sort end |
#web_path ⇒ Object
Returns the value of attribute web_path.
181 182 183 |
# File 'lib/atetracks/structures.rb', line 181 def web_path @web_path end |