Class: GQL::Schema

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Singleton
Defined in:
lib/gql/schema.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSchema

Returns a new instance of Schema.



17
18
19
# File 'lib/gql/schema.rb', line 17

def initialize
  @fields = {}
end

Instance Attribute Details

#fieldsObject (readonly)

Returns the value of attribute fields.



15
16
17
# File 'lib/gql/schema.rb', line 15

def fields
  @fields
end

#rootObject

Returns the value of attribute root.



14
15
16
# File 'lib/gql/schema.rb', line 14

def root
  @root
end