Class: GraphQL::SchemaComparator::EnumUsage

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/schema_comparator/enum_usage.rb

Instance Method Summary collapse

Constructor Details

#initialize(input:, output:) ⇒ EnumUsage

Returns a new instance of EnumUsage.



4
5
6
7
# File 'lib/graphql/schema_comparator/enum_usage.rb', line 4

def initialize(input:, output:)
  @input = input
  @output = output
end

Instance Method Details

#input?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/graphql/schema_comparator/enum_usage.rb', line 9

def input?
  @input
end

#output?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/graphql/schema_comparator/enum_usage.rb', line 13

def output?
  @output
end