lib/haveapi/fs/components/action_dir.rb in haveapi-fs-0.8.0 vs lib/haveapi/fs/components/action_dir.rb in haveapi-fs-0.9.0

- old
+ new

@@ -62,11 +62,29 @@ @resource, @action, ret, ) + when :hash + res = HaveAPI::Fs::HashWrapper.new( + @resource.instance_variable_get('@client'), + @resource.instance_variable_get('@api'), + @resource, + @action, + ret.response, + ) + + when :hash_list + res = HaveAPI::Fs::HashListWrapper.new( + @resource.instance_variable_get('@client'), + @resource.instance_variable_get('@api'), + @resource, + @action, + ret.response, + ) + else - res = ret + res = ret.response end children[:output].data = res children[:meta].output = ret.meta