Sha256: e7caac6a4c340114c1694f19736e4a159e52a8265413c9dc887b19cf1c69226d
Contents?: true
Size: 623 Bytes
Versions: 24
Compression:
Stored size: 623 Bytes
Contents
module Cuboid module RPC class Client class Instance # @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> class Proxy < Toq::Proxy def initialize( client ) super client, 'instance' end translate :status do |status| status.to_sym if status end translate :progress do |data| data = data.my_symbolize_keys data[:status] = data[:status].to_sym data end translate :abort_and_generate_report do |data| Report.from_rpc_data data end translate :generate_report do |data| Report.from_rpc_data data end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems