class Pathway::State

Public Class Methods

new(operation, values = {}) click to toggle source
# File lib/pathway.rb, line 55
def initialize(operation, values = {})
  @hash = operation.context.merge(values)
  @result_key = operation.result_key
end

Public Instance Methods

result() click to toggle source
# File lib/pathway.rb, line 67
def result
  @hash[@result_key]
end
to_h()
Alias for: to_hash
to_hash() click to toggle source
# File lib/pathway.rb, line 71
def to_hash
  @hash
end
Also aliased as: to_h
update(kargs) click to toggle source
# File lib/pathway.rb, line 62
def update(kargs)
  @hash.update(kargs)
  self
end