class Realm::ActionHandler::Result
Tuple of label and value
Public Class Methods
[](first, second = nil)
click to toggle source
# File lib/realm/action_handler/result.rb, line 7 def self.[](first, second = nil) return new(first, second).freeze if first.is_a?(Symbol) || first.is_a?(Realm::Event) new(second || :ok, first).freeze end
new(label, value)
click to toggle source
Calls superclass method
# File lib/realm/action_handler/result.rb, line 27 def initialize(label, value) super([label, value]) end
Public Instance Methods
event()
click to toggle source
# File lib/realm/action_handler/result.rb, line 17 def event label if label.is_a?(Realm::Event) end
label()
click to toggle source
# File lib/realm/action_handler/result.rb, line 13 def label self[0] end
value()
click to toggle source
# File lib/realm/action_handler/result.rb, line 21 def value self[1] end