class GraphQL::Api::CommandType
Attributes
ctx[RW]
inputs[RW]
Public Class Methods
actions(*actions)
click to toggle source
# File lib/graphql/api/command_type.rb, line 20 def self.actions(*actions) @actions = actions if actions.any? @actions || [] end
inputs(inputs=nil)
click to toggle source
# File lib/graphql/api/command_type.rb, line 10 def self.inputs(inputs=nil) @inputs = inputs if inputs @inputs || {} end
new(inputs, ctx)
click to toggle source
# File lib/graphql/api/command_type.rb, line 5 def initialize(inputs, ctx) @inputs = inputs @ctx = ctx end
returns(fields=nil)
click to toggle source
# File lib/graphql/api/command_type.rb, line 15 def self.returns(fields=nil) @returns = fields if fields @returns || {} end
Public Instance Methods
perform()
click to toggle source
# File lib/graphql/api/command_type.rb, line 25 def perform end