Module: GraphQL::Client::LazyName

Defined in:
lib/graphql/client.rb

Overview

Internal: FragmentSpread and FragmentDefinition extension to allow its name to point to a lazily defined Proc instead of a static string.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#name_proc=(value) ⇒ Object (writeonly)

Sets the attribute name_proc

Parameters:

  • value

    the value to set the attribute name_proc to.



390
391
392
# File 'lib/graphql/client.rb', line 390

def name_proc=(value)
  @name_proc = value
end

Instance Method Details

#nameObject



386
387
388
# File 'lib/graphql/client.rb', line 386

def name
  @name_proc.call
end