Class: CypherBuilder::MicroResolver

Inherits:
Struct
  • Object
show all
Includes:
Resolver
Defined in:
lib/cypher_builder/order_by.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Resolver

#resolve, #wrap

Instance Attribute Details

#contextObject

Returns the value of attribute context

Returns:

  • (Object)

    the current value of context



2
3
4
# File 'lib/cypher_builder/order_by.rb', line 2

def context
  @context
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



2
3
4
# File 'lib/cypher_builder/order_by.rb', line 2

def payload
  @payload
end

Instance Method Details

#execute(value) ⇒ Object



4
5
6
# File 'lib/cypher_builder/order_by.rb', line 4

def execute(value)
  resolve(value, payload: payload, context: context)
end