class NgrokAPI::Models::Tunnel

Attributes

attrs[R]
backends[R]
client[R]
endpoint[R]
forwards_to[R]
id[R]
labels[R]
metadata[R]
proto[R]
public_url[R]
region[R]
started_at[R]
tunnel_session[R]

Public Class Methods

new(client: nil, attrs: {}) click to toggle source
# File lib/ngrokapi/models/tunnel.rb, line 20
def initialize(client: nil, attrs: {})
  @client = client
  @attrs = attrs
  @id = @attrs['id']
  @public_url = @attrs['public_url']
  @started_at = @attrs['started_at']
  @metadata = @attrs['metadata']
  @proto = @attrs['proto']
  @region = @attrs['region']
  @tunnel_session = @attrs['tunnel_session']
  @endpoint = @attrs['endpoint']
  @labels = @attrs['labels']
  @backends = @attrs['backends']
  @forwards_to = @attrs['forwards_to']
end

Public Instance Methods

==(other) click to toggle source
# File lib/ngrokapi/models/tunnel.rb, line 36
def ==(other)
  @attrs == other.attrs
end
to_h() click to toggle source
# File lib/ngrokapi/models/tunnel.rb, line 44
def to_h
  @attrs.to_h
end
to_s() click to toggle source
# File lib/ngrokapi/models/tunnel.rb, line 40
def to_s
  @attrs.to_s
end