Class: AteTracks::Structures::UserMixes

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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

#mixesObject

Returns the value of attribute mixes.



181
182
183
# File 'lib/atetracks/structures.rb', line 181

def mixes
  @mixes
end

#nameObject

Returns the value of attribute name.



181
182
183
# File 'lib/atetracks/structures.rb', line 181

def name
  @name
end

#paginationObject

Returns the value of attribute pagination.



181
182
183
# File 'lib/atetracks/structures.rb', line 181

def pagination
  @pagination
end

#pathObject

Returns the value of attribute path.



181
182
183
# File 'lib/atetracks/structures.rb', line 181

def path
  @path
end

#smart_idObject

Returns the value of attribute smart_id.



181
182
183
# File 'lib/atetracks/structures.rb', line 181

def smart_id
  @smart_id
end

#smart_typeObject

Returns the value of attribute smart_type.



181
182
183
# File 'lib/atetracks/structures.rb', line 181

def smart_type
  @smart_type
end

#sortObject

Returns the value of attribute sort.



181
182
183
# File 'lib/atetracks/structures.rb', line 181

def sort
  @sort
end

#web_pathObject

Returns the value of attribute web_path.



181
182
183
# File 'lib/atetracks/structures.rb', line 181

def web_path
  @web_path
end