Class: Cadenya::Types::Page
- Inherits:
-
Object
- Object
- Cadenya::Types::Page
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#next_cursor ⇒ Object
readonly
Returns the value of attribute next_cursor.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(next_cursor: nil) ⇒ Page
constructor
A new instance of Page.
- #to_h ⇒ Object
Constructor Details
#initialize(next_cursor: nil) ⇒ Page
Returns a new instance of Page.
4494 4495 4496 |
# File 'lib/cadenya/types.rb', line 4494 def initialize(next_cursor: nil) @next_cursor = next_cursor end |
Instance Attribute Details
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
4492 4493 4494 |
# File 'lib/cadenya/types.rb', line 4492 def next_cursor @next_cursor end |
Class Method Details
.from_json(data) ⇒ Object
4498 4499 4500 4501 4502 |
# File 'lib/cadenya/types.rb', line 4498 def self.from_json(data) new( next_cursor: data["nextCursor"], ) end |