Class: Gitlab::Graphql::ExternallyPaginatedArray
- Inherits:
-
Array
- Object
- Array
- Gitlab::Graphql::ExternallyPaginatedArray
- Defined in:
- lib/gitlab/graphql/externally_paginated_array.rb
Instance Attribute Summary collapse
-
#end_cursor ⇒ Object
readonly
Returns the value of attribute end_cursor.
-
#start_cursor ⇒ Object
readonly
Returns the value of attribute start_cursor.
Instance Method Summary collapse
-
#initialize(previous_cursor, next_cursor, *args) ⇒ ExternallyPaginatedArray
constructor
A new instance of ExternallyPaginatedArray.
Constructor Details
#initialize(previous_cursor, next_cursor, *args) ⇒ ExternallyPaginatedArray
Returns a new instance of ExternallyPaginatedArray.
8 9 10 11 12 |
# File 'lib/gitlab/graphql/externally_paginated_array.rb', line 8 def initialize(previous_cursor, next_cursor, *args) super(args) @start_cursor = previous_cursor @end_cursor = next_cursor end |
Instance Attribute Details
#end_cursor ⇒ Object (readonly)
Returns the value of attribute end_cursor.
6 7 8 |
# File 'lib/gitlab/graphql/externally_paginated_array.rb', line 6 def end_cursor @end_cursor end |
#start_cursor ⇒ Object (readonly)
Returns the value of attribute start_cursor.
6 7 8 |
# File 'lib/gitlab/graphql/externally_paginated_array.rb', line 6 def start_cursor @start_cursor end |