class NgrokAPI::Models::TunnelSession
Attributes
agent_version[R]
attrs[R]
client[R]
credential[R]
id[R]
ip[R]
metadata[R]
os[R]
region[R]
started_at[R]
transport[R]
uri[R]
Public Class Methods
new(client: nil, attrs: {})
click to toggle source
# File lib/ngrokapi/models/tunnel_session.rb, line 19 def initialize(client: nil, attrs: {}) @client = client @attrs = attrs @agent_version = @attrs['agent_version'] @credential = @attrs['credential'] @id = @attrs['id'] @ip = @attrs['ip'] @metadata = @attrs['metadata'] @os = @attrs['os'] @region = @attrs['region'] @started_at = @attrs['started_at'] @transport = @attrs['transport'] @uri = @attrs['uri'] end
Public Instance Methods
==(other)
click to toggle source
# File lib/ngrokapi/models/tunnel_session.rb, line 34 def ==(other) @attrs == other.attrs end
to_h()
click to toggle source
# File lib/ngrokapi/models/tunnel_session.rb, line 42 def to_h @attrs.to_h end
to_s()
click to toggle source
# File lib/ngrokapi/models/tunnel_session.rb, line 38 def to_s @attrs.to_s end