Class: CypherBuilder::Payload::WithStatus
- Inherits:
-
Struct
- Object
- Struct
- CypherBuilder::Payload::WithStatus
- Defined in:
- lib/cypher_builder/payload.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status
2 3 4 |
# File 'lib/cypher_builder/payload.rb', line 2 def status @status end |
#value ⇒ Object
Returns the value of attribute 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 |