Class: GraphqlRails::Model::BuildConnectionType
- Inherits:
-
Object
- Object
- GraphqlRails::Model::BuildConnectionType
- Includes:
- Service
- Defined in:
- lib/graphql_rails/model/build_connection_type.rb,
lib/graphql_rails/model/build_connection_type/count_items.rb
Overview
builds connection type from graphql type with some extra attributes
Defined Under Namespace
Classes: CountItems
Instance Attribute Summary collapse
-
#initial_type ⇒ Object
readonly
Returns the value of attribute initial_type.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(initial_type) ⇒ BuildConnectionType
constructor
A new instance of BuildConnectionType.
Constructor Details
#initialize(initial_type) ⇒ BuildConnectionType
Returns a new instance of BuildConnectionType.
16 17 18 |
# File 'lib/graphql_rails/model/build_connection_type.rb', line 16 def initialize(initial_type) @initial_type = initial_type end |
Instance Attribute Details
#initial_type ⇒ Object (readonly)
Returns the value of attribute initial_type.
14 15 16 |
# File 'lib/graphql_rails/model/build_connection_type.rb', line 14 def initial_type @initial_type end |
Instance Method Details
#call ⇒ Object
20 21 22 |
# File 'lib/graphql_rails/model/build_connection_type.rb', line 20 def call build_connection_type end |