Class: Spotify::Models::CursorbasedPaging
- Inherits:
-
Object
- Object
- Spotify::Models::CursorbasedPaging
- Defined in:
- lib/spotify/models/cursorbased_paging.rb
Instance Attribute Summary collapse
-
#cursors ⇒ Object
readonly
Returns the value of attribute cursors.
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#next ⇒ Object
readonly
Returns the value of attribute next.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(args = {}, klass) ⇒ CursorbasedPaging
constructor
A new instance of CursorbasedPaging.
Constructor Details
#initialize(args = {}, klass) ⇒ CursorbasedPaging
Returns a new instance of CursorbasedPaging.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/spotify/models/cursorbased_paging.rb', line 9 def initialize(args = {}, klass) args = args.with_indifferent_access @href = args[:href] @items = args[:items].map { |item| klass.new(item) } @limit = args[:limit] @next = args[:next] @total = args[:total] @cursors = Cursor.new(args[:cursors]) end |
Instance Attribute Details
#cursors ⇒ Object (readonly)
Returns the value of attribute cursors.
7 8 9 |
# File 'lib/spotify/models/cursorbased_paging.rb', line 7 def cursors @cursors end |
#href ⇒ Object (readonly)
Returns the value of attribute href.
7 8 9 |
# File 'lib/spotify/models/cursorbased_paging.rb', line 7 def href @href end |
#items ⇒ Object (readonly)
Returns the value of attribute items.
7 8 9 |
# File 'lib/spotify/models/cursorbased_paging.rb', line 7 def items @items end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
7 8 9 |
# File 'lib/spotify/models/cursorbased_paging.rb', line 7 def limit @limit end |
#next ⇒ Object (readonly)
Returns the value of attribute next.
7 8 9 |
# File 'lib/spotify/models/cursorbased_paging.rb', line 7 def next @next end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
7 8 9 |
# File 'lib/spotify/models/cursorbased_paging.rb', line 7 def total @total end |