class Proxy::RemoteExecution::Ssh::Connector::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/connector.rb, line 12
def initialize(data, timestamp = Time.now)
  @data = data
  @timestamp = timestamp
end

Public Instance Methods

data_type() click to toggle source
# File lib/smart_proxy_remote_execution_ssh/connector.rb, line 17
def data_type
  raise NotImplemented
end
to_hash() click to toggle source
# File lib/smart_proxy_remote_execution_ssh/connector.rb, line 21
def to_hash
  { :output_type => data_type,
    :output      => data,
    :timestamp   => timestamp.to_f }
end