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.
-
#has_next_page ⇒ Object
readonly
Returns the value of attribute has_next_page.
-
#has_previous_page ⇒ Object
readonly
Returns the value of attribute has_previous_page.
-
#start_cursor ⇒ Object
readonly
Returns the value of attribute start_cursor.
Instance Method Summary collapse
-
#initialize(previous_cursor, next_cursor, *args, has_next_page: nil, has_previous_page: nil) ⇒ ExternallyPaginatedArray
constructor
A new instance of ExternallyPaginatedArray.
Constructor Details
#initialize(previous_cursor, next_cursor, *args, has_next_page: nil, has_previous_page: nil) ⇒ ExternallyPaginatedArray
Returns a new instance of ExternallyPaginatedArray.
8 9 10 11 12 13 14 |
# File 'lib/gitlab/graphql/externally_paginated_array.rb', line 8 def initialize(previous_cursor, next_cursor, *args, has_next_page: nil, has_previous_page: nil) super(args) @start_cursor = previous_cursor @end_cursor = next_cursor @has_next_page = has_next_page @has_previous_page = has_previous_page 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 |
#has_next_page ⇒ Object (readonly)
Returns the value of attribute has_next_page.
6 7 8 |
# File 'lib/gitlab/graphql/externally_paginated_array.rb', line 6 def has_next_page @has_next_page end |
#has_previous_page ⇒ Object (readonly)
Returns the value of attribute has_previous_page.
6 7 8 |
# File 'lib/gitlab/graphql/externally_paginated_array.rb', line 6 def has_previous_page @has_previous_page 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 |