Class: SauceWhisk::Tunnel
- Inherits:
-
Object
- Object
- SauceWhisk::Tunnel
- Defined in:
- lib/sauce_whisk/tunnels.rb
Instance Attribute Summary collapse
-
#creation_time ⇒ Object
readonly
Returns the value of attribute creation_time.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#ssh_port ⇒ Object
readonly
Returns the value of attribute ssh_port.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#tunnel_identifier ⇒ Object
readonly
Returns the value of attribute tunnel_identifier.
Instance Method Summary collapse
-
#initialize(params) ⇒ Tunnel
constructor
A new instance of Tunnel.
- #stop ⇒ Object
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_time ⇒ Object (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 |
#host ⇒ Object (readonly)
Returns the value of attribute host.
52 53 54 |
# File 'lib/sauce_whisk/tunnels.rb', line 52 def host @host end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
52 53 54 |
# File 'lib/sauce_whisk/tunnels.rb', line 52 def id @id end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
52 53 54 |
# File 'lib/sauce_whisk/tunnels.rb', line 52 def owner @owner end |
#ssh_port ⇒ Object (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 |
#status ⇒ Object (readonly)
Returns the value of attribute status.
52 53 54 |
# File 'lib/sauce_whisk/tunnels.rb', line 52 def status @status end |
#tunnel_identifier ⇒ Object (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
#stop ⇒ Object
60 61 62 |
# File 'lib/sauce_whisk/tunnels.rb', line 60 def stop SauceWhisk::Tunnels.stop self.id end |