Class: SpotifAye::ResultSet

Inherits:
Object
  • Object
show all
Defined in:
lib/spotif-aye.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(results) ⇒ ResultSet

Returns a new instance of ResultSet.



33
34
35
36
# File 'lib/spotif-aye.rb', line 33

def initialize(results)
	populate_info(results['info'])
	populate_results(results['artists'])
end

Instance Attribute Details

#limitObject

Returns the value of attribute limit.



31
32
33
# File 'lib/spotif-aye.rb', line 31

def limit
  @limit
end

#num_resultsObject

Returns the value of attribute num_results.



31
32
33
# File 'lib/spotif-aye.rb', line 31

def num_results
  @num_results
end

#offsetObject

Returns the value of attribute offset.



31
32
33
# File 'lib/spotif-aye.rb', line 31

def offset
  @offset
end

#pageObject

Returns the value of attribute page.



31
32
33
# File 'lib/spotif-aye.rb', line 31

def page
  @page
end

#queryObject

Returns the value of attribute query.



31
32
33
# File 'lib/spotif-aye.rb', line 31

def query
  @query
end

#resultsObject

Returns the value of attribute results.



31
32
33
# File 'lib/spotif-aye.rb', line 31

def results
  @results
end

#typeObject

Returns the value of attribute type.



31
32
33
# File 'lib/spotif-aye.rb', line 31

def type
  @type
end