Class: GraphQL::PageCursorConnection
- Inherits:
-
Types::Relay::BaseConnection
- Object
- Types::Relay::BaseConnection
- GraphQL::PageCursorConnection
- Defined in:
- lib/graphql/page_cursors.rb
Instance Attribute Summary collapse
-
#resolver ⇒ Object
readonly
Returns the value of attribute resolver.
Instance Method Summary collapse
-
#initialize(object, context) ⇒ PageCursorConnection
constructor
A new instance of PageCursorConnection.
- #page_cursors ⇒ Object
- #total_count ⇒ Object
- #total_pages ⇒ Object
Constructor Details
#initialize(object, context) ⇒ PageCursorConnection
Returns a new instance of PageCursorConnection.
28 29 30 31 |
# File 'lib/graphql/page_cursors.rb', line 28 def initialize(object, context) super(object, context) @resolver = PageCursorResolver.new(object, context) end |
Instance Attribute Details
#resolver ⇒ Object (readonly)
Returns the value of attribute resolver.
26 27 28 |
# File 'lib/graphql/page_cursors.rb', line 26 def resolver @resolver end |
Instance Method Details
#page_cursors ⇒ Object
33 34 35 |
# File 'lib/graphql/page_cursors.rb', line 33 def page_cursors resolver.page_cursors end |
#total_count ⇒ Object
41 42 43 |
# File 'lib/graphql/page_cursors.rb', line 41 def total_count resolver.total_count end |
#total_pages ⇒ Object
37 38 39 |
# File 'lib/graphql/page_cursors.rb', line 37 def total_pages resolver.total_pages end |