Class: GraphqlRails::Model::BuildConnectionType

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#callObject



20
21
22
# File 'lib/graphql_rails/model/build_connection_type.rb', line 20

def call
  build_connection_type
end