Class: GQL::Schema
- Inherits:
-
Object
- Object
- GQL::Schema
- Extended by:
- Forwardable
- Includes:
- Singleton
- Defined in:
- lib/gql/schema.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#root ⇒ Object
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize ⇒ Schema
constructor
A new instance of Schema.
Constructor Details
#initialize ⇒ Schema
Returns a new instance of Schema.
17 18 19 |
# File 'lib/gql/schema.rb', line 17 def initialize @fields = {} end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
15 16 17 |
# File 'lib/gql/schema.rb', line 15 def fields @fields end |
#root ⇒ Object
Returns the value of attribute root.
14 15 16 |
# File 'lib/gql/schema.rb', line 14 def root @root end |