Class: Gitlab::Graphql::ExternallyPaginatedArray

Inherits:
Array
  • Object
show all
Defined in:
lib/gitlab/graphql/externally_paginated_array.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_cursorObject (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_cursorObject (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