class Graphlient::Schema
Constants
- PATH_ERROR_MESSAGE
Attributes
http[R]
path[R]
Public Class Methods
new(http, path)
click to toggle source
Calls superclass method
# File lib/graphlient/schema.rb, line 13 def initialize(http, path) schema_source = path || http super(GraphQL::Client.load_schema(schema_source)) @path = path @http = http end
Public Instance Methods
dump!()
click to toggle source
# File lib/graphlient/schema.rb, line 21 def dump! raise MissingConfigurationError, PATH_ERROR_MESSAGE unless path GraphQL::Client.dump_schema(http, path) end