Class: Kraaken::Cloudflare::Tunnel

Inherits:
Struct
  • Object
show all
Defined in:
lib/kraaken/cloudflare.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_tokenObject

Returns the value of attribute _token

Returns:

  • (Object)

    the current value of _token



6
7
8
# File 'lib/kraaken/cloudflare.rb', line 6

def _token
  @_token
end

#cloudflareObject

Returns the value of attribute cloudflare

Returns:

  • (Object)

    the current value of cloudflare



6
7
8
# File 'lib/kraaken/cloudflare.rb', line 6

def cloudflare
  @cloudflare
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



6
7
8
# File 'lib/kraaken/cloudflare.rb', line 6

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/kraaken/cloudflare.rb', line 6

def name
  @name
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



6
7
8
# File 'lib/kraaken/cloudflare.rb', line 6

def status
  @status
end

Instance Method Details

#tokenObject



7
8
9
# File 'lib/kraaken/cloudflare.rb', line 7

def token
  _token || cloudflare.tunnel_token(id:)
end