Module: GraphitiGql::RunnerExtras

Defined in:
lib/graphiti_gql/graphiti_hax.rb

Instance Method Summary collapse

Instance Method Details

#jsonapi_resourceObject



6
7
8
9
10
11
12
# File 'lib/graphiti_gql/graphiti_hax.rb', line 6

def jsonapi_resource
  @jsonapi_resource ||= begin
    r = @resource_class.new
    r.instance_variable_set(:@params, @params)
    r
  end
end