class Proxy::RemoteExecution::Ssh::CommandUpdate::Data
Attributes
data[R]
timestamp[R]
Public Class Methods
new(data, timestamp = Time.now)
click to toggle source
# File lib/smart_proxy_remote_execution_ssh_core/command_update.rb, line 35 def initialize(data, timestamp = Time.now) @data = data @data = @data.force_encoding('UTF-8') if @data.is_a? String @timestamp = timestamp end
Public Instance Methods
data_type()
click to toggle source
# File lib/smart_proxy_remote_execution_ssh_core/command_update.rb, line 41 def data_type raise NotImplemented end
to_hash()
click to toggle source
# File lib/smart_proxy_remote_execution_ssh_core/command_update.rb, line 45 def to_hash { :output_type => data_type, :output => data, :timestamp => timestamp.to_f } end