Class: Sink::Resources::PaginationTests

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/pagination_tests.rb,
lib/sink/resources/pagination_tests/refs.rb,
lib/sink/resources/pagination_tests/cursor.rb,
lib/sink/resources/pagination_tests/offset.rb,
lib/sink/resources/pagination_tests/cursor_id.rb,
lib/sink/resources/pagination_tests/cursor_url.rb,
lib/sink/resources/pagination_tests/fake_pages.rb,
lib/sink/resources/pagination_tests/items_types.rb,
lib/sink/resources/pagination_tests/page_number.rb,
lib/sink/resources/pagination_tests/nested_items.rb,
lib/sink/resources/pagination_tests/schema_types.rb,
lib/sink/resources/pagination_tests/response_headers.rb,
lib/sink/resources/pagination_tests/top_level_arrays.rb,
lib/sink/resources/pagination_tests/page_number_without_current_page_response.rb

Defined Under Namespace

Classes: Cursor, CursorID, CursorURL, FakePages, ItemsTypes, NestedItems, Offset, PageNumber, PageNumberWithoutCurrentPageResponse, Refs, ResponseHeaders, SchemaTypes, TopLevelArrays

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ PaginationTests

Returns a new instance of PaginationTests.

Parameters:



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/sink/resources/pagination_tests.rb', line 46

def initialize(client:)
  @client = client
  @schema_types = Sink::Resources::PaginationTests::SchemaTypes.new(client: client)
  @items_types = Sink::Resources::PaginationTests::ItemsTypes.new(client: client)
  @page_number = Sink::Resources::PaginationTests::PageNumber.new(client: client)
  @page_number_without_current_page_response = Sink::Resources::PaginationTests::PageNumberWithoutCurrentPageResponse.new(client: client)
  @refs = Sink::Resources::PaginationTests::Refs.new(client: client)
  @response_headers = Sink::Resources::PaginationTests::ResponseHeaders.new(client: client)
  @top_level_arrays = Sink::Resources::PaginationTests::TopLevelArrays.new(client: client)
  @cursor = Sink::Resources::PaginationTests::Cursor.new(client: client)
  @cursor_id = Sink::Resources::PaginationTests::CursorID.new(client: client)
  @cursor_url = Sink::Resources::PaginationTests::CursorURL.new(client: client)
  @offset = Sink::Resources::PaginationTests::Offset.new(client: client)
  @fake_pages = Sink::Resources::PaginationTests::FakePages.new(client: client)
  @nested_items = Sink::Resources::PaginationTests::NestedItems.new(client: client)
end

Instance Attribute Details

#cursorSink::Resources::PaginationTests::Cursor (readonly)



28
29
30
# File 'lib/sink/resources/pagination_tests.rb', line 28

def cursor
  @cursor
end

#cursor_idSink::Resources::PaginationTests::CursorID (readonly)



31
32
33
# File 'lib/sink/resources/pagination_tests.rb', line 31

def cursor_id
  @cursor_id
end

#cursor_urlSink::Resources::PaginationTests::CursorURL (readonly)



34
35
36
# File 'lib/sink/resources/pagination_tests.rb', line 34

def cursor_url
  @cursor_url
end

#fake_pagesSink::Resources::PaginationTests::FakePages (readonly)



40
41
42
# File 'lib/sink/resources/pagination_tests.rb', line 40

def fake_pages
  @fake_pages
end

#items_typesSink::Resources::PaginationTests::ItemsTypes (readonly)



10
11
12
# File 'lib/sink/resources/pagination_tests.rb', line 10

def items_types
  @items_types
end

#nested_itemsSink::Resources::PaginationTests::NestedItems (readonly)



43
44
45
# File 'lib/sink/resources/pagination_tests.rb', line 43

def nested_items
  @nested_items
end

#offsetSink::Resources::PaginationTests::Offset (readonly)



37
38
39
# File 'lib/sink/resources/pagination_tests.rb', line 37

def offset
  @offset
end

#page_numberSink::Resources::PaginationTests::PageNumber (readonly)



13
14
15
# File 'lib/sink/resources/pagination_tests.rb', line 13

def page_number
  @page_number
end

#page_number_without_current_page_responseSink::Resources::PaginationTests::PageNumberWithoutCurrentPageResponse (readonly)



16
17
18
# File 'lib/sink/resources/pagination_tests.rb', line 16

def page_number_without_current_page_response
  @page_number_without_current_page_response
end

#refsSink::Resources::PaginationTests::Refs (readonly)



19
20
21
# File 'lib/sink/resources/pagination_tests.rb', line 19

def refs
  @refs
end

#response_headersSink::Resources::PaginationTests::ResponseHeaders (readonly)



22
23
24
# File 'lib/sink/resources/pagination_tests.rb', line 22

def response_headers
  @response_headers
end

#schema_typesSink::Resources::PaginationTests::SchemaTypes (readonly)



7
8
9
# File 'lib/sink/resources/pagination_tests.rb', line 7

def schema_types
  @schema_types
end

#top_level_arraysSink::Resources::PaginationTests::TopLevelArrays (readonly)



25
26
27
# File 'lib/sink/resources/pagination_tests.rb', line 25

def top_level_arrays
  @top_level_arrays
end