Class: AteTracks::Structures::SimilarMixes
- Inherits:
-
Object
- Object
- AteTracks::Structures::SimilarMixes
- Defined in:
- lib/atetracks/structures.rb
Instance Attribute Summary collapse
-
#mixes ⇒ Object
Returns the value of attribute mixes.
-
#smart_id ⇒ Object
Returns the value of attribute smart_id.
Instance Method Summary collapse
-
#initialize(data) ⇒ SimilarMixes
constructor
A new instance of SimilarMixes.
Constructor Details
#initialize(data) ⇒ SimilarMixes
204 205 206 207 208 209 210 211 212 |
# File 'lib/atetracks/structures.rb', line 204 def initialize(data) return nil if data.nil? @mixes = [] @smart_id = data['smart_id'] if Structures::not_empty?(data['mixes']) @mixes = Structures::populate(data['mixes'], Mix) end end |
Instance Attribute Details
#mixes ⇒ Object
Returns the value of attribute mixes.
202 203 204 |
# File 'lib/atetracks/structures.rb', line 202 def mixes @mixes end |
#smart_id ⇒ Object
Returns the value of attribute smart_id.
202 203 204 |
# File 'lib/atetracks/structures.rb', line 202 def smart_id @smart_id end |