Class: CypherBuilder::Payload::WithStatus

Inherits:
Struct
  • Object
show all
Defined in:
lib/cypher_builder/payload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



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

def status
  @status
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



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

def value
  @value
end

Instance Method Details

#to_status(new_status) ⇒ Object



3
4
5
# File 'lib/cypher_builder/payload.rb', line 3

def to_status(new_status)
  WithStatus.new(value, new_status)
end