Class: Portless::RouteStore::Route

Inherits:
Struct
  • Object
show all
Defined in:
lib/portless/route_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostnameObject

Returns the value of attribute hostname

Returns:

  • (Object)

    the current value of hostname



12
13
14
# File 'lib/portless/route_store.rb', line 12

def hostname
  @hostname
end

#ngrokObject

Returns the value of attribute ngrok

Returns:

  • (Object)

    the current value of ngrok



12
13
14
# File 'lib/portless/route_store.rb', line 12

def ngrok
  @ngrok
end

#pidObject

Returns the value of attribute pid

Returns:

  • (Object)

    the current value of pid



12
13
14
# File 'lib/portless/route_store.rb', line 12

def pid
  @pid
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



12
13
14
# File 'lib/portless/route_store.rb', line 12

def port
  @port
end

#tailscaleObject

Returns the value of attribute tailscale

Returns:

  • (Object)

    the current value of tailscale



12
13
14
# File 'lib/portless/route_store.rb', line 12

def tailscale
  @tailscale
end

Instance Method Details

#alias?Boolean

pid 0 = static alias (never reaped)

Returns:

  • (Boolean)


13
# File 'lib/portless/route_store.rb', line 13

def alias? = pid.to_i.zero? # pid 0 = static alias (never reaped)