module FutureWrapper
Public Instance Methods
[](key)
click to toggle source
# File lib/moki_ruby/future_wrapper.rb, line 2 def[](key) response = value if response[key].present? response[key] else response.body[key] end end
method_missing(sym, *args, &block)
click to toggle source
# File lib/moki_ruby/future_wrapper.rb, line 11 def method_missing(sym, *args, &block) response = value if response.respond_to? sym response.send sym, *args, &block else response.body.send sym, *args, &block end end