Class: Gitlab::Graphql::Variables

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/graphql/variables.rb

Constant Summary collapse

Invalid =
Class.new(Gitlab::Graphql::StandardGraphqlError)

Instance Method Summary collapse

Constructor Details

#initialize(param) ⇒ Variables

Returns a new instance of Variables.


8
9
10
# File 'lib/gitlab/graphql/variables.rb', line 8

def initialize(param)
  @param = param
end

Instance Method Details

#to_hObject


12
13
14
# File 'lib/gitlab/graphql/variables.rb', line 12

def to_h
  ensure_hash(@param)
end