lib/faastruby-rpc/function.rb in faastruby-rpc-0.2.4 vs lib/faastruby-rpc/function.rb in faastruby-rpc-0.2.5
- old
+ new
@@ -84,10 +84,14 @@
def returned?
!@response.nil?
end
+ def value
+ body
+ end
+
def method_missing(m, *args, &block)
rsp = response.body
rsp.send(m.to_sym, *args, &block)
end
@@ -96,9 +100,13 @@
@response
end
def to_s
body.to_s || ""
+ end
+
+ def inspect
+ body.inspect || ""
end
# alias_method :read, :to_s
def body