Class: SauceWhisk::Tunnel

Inherits:
Object
  • Object
show all
Defined in:
lib/sauce_whisk/tunnels.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Tunnel

Returns a new instance of Tunnel.



54
55
56
57
58
# File 'lib/sauce_whisk/tunnels.rb', line 54

def initialize(params)
  params.each do |param, val|
    self.instance_variable_set("@#{param}", val)
  end
end

Instance Attribute Details

#creation_timeObject (readonly)

Returns the value of attribute creation_time.



52
53
54
# File 'lib/sauce_whisk/tunnels.rb', line 52

def creation_time
  @creation_time
end

#hostObject (readonly)

Returns the value of attribute host.



52
53
54
# File 'lib/sauce_whisk/tunnels.rb', line 52

def host
  @host
end

#idObject (readonly)

Returns the value of attribute id.



52
53
54
# File 'lib/sauce_whisk/tunnels.rb', line 52

def id
  @id
end

#ownerObject (readonly)

Returns the value of attribute owner.



52
53
54
# File 'lib/sauce_whisk/tunnels.rb', line 52

def owner
  @owner
end

#ssh_portObject (readonly)

Returns the value of attribute ssh_port.



52
53
54
# File 'lib/sauce_whisk/tunnels.rb', line 52

def ssh_port
  @ssh_port
end

#statusObject (readonly)

Returns the value of attribute status.



52
53
54
# File 'lib/sauce_whisk/tunnels.rb', line 52

def status
  @status
end

#tunnel_identifierObject (readonly)

Returns the value of attribute tunnel_identifier.



52
53
54
# File 'lib/sauce_whisk/tunnels.rb', line 52

def tunnel_identifier
  @tunnel_identifier
end

Instance Method Details

#stopObject



60
61
62
# File 'lib/sauce_whisk/tunnels.rb', line 60

def stop
  SauceWhisk::Tunnels.stop self.id
end