Class: SpotifAye::ResultSet
- Inherits:
-
Object
- Object
- SpotifAye::ResultSet
- Defined in:
- lib/spotif-aye.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#num_results ⇒ Object
Returns the value of attribute num_results.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#page ⇒ Object
Returns the value of attribute page.
-
#query ⇒ Object
Returns the value of attribute query.
-
#results ⇒ Object
Returns the value of attribute results.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(results) ⇒ ResultSet
constructor
A new instance of ResultSet.
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
#limit ⇒ Object
Returns the value of attribute limit.
31 32 33 |
# File 'lib/spotif-aye.rb', line 31 def limit @limit end |
#num_results ⇒ Object
Returns the value of attribute num_results.
31 32 33 |
# File 'lib/spotif-aye.rb', line 31 def num_results @num_results end |
#offset ⇒ Object
Returns the value of attribute offset.
31 32 33 |
# File 'lib/spotif-aye.rb', line 31 def offset @offset end |
#page ⇒ Object
Returns the value of attribute page.
31 32 33 |
# File 'lib/spotif-aye.rb', line 31 def page @page end |
#query ⇒ Object
Returns the value of attribute query.
31 32 33 |
# File 'lib/spotif-aye.rb', line 31 def query @query end |
#results ⇒ Object
Returns the value of attribute results.
31 32 33 |
# File 'lib/spotif-aye.rb', line 31 def results @results end |
#type ⇒ Object
Returns the value of attribute type.
31 32 33 |
# File 'lib/spotif-aye.rb', line 31 def type @type end |