Class: NgrokAPI::Models::TunnelSession
- Inherits:
-
Object
- Object
- NgrokAPI::Models::TunnelSession
- Defined in:
- lib/ngrokapi/models/tunnel_session.rb
Instance Attribute Summary collapse
-
#agent_version ⇒ Object
readonly
Returns the value of attribute agent_version.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#credential ⇒ Object
readonly
Returns the value of attribute credential.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#os ⇒ Object
readonly
Returns the value of attribute os.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#started_at ⇒ Object
readonly
Returns the value of attribute started_at.
-
#transport ⇒ Object
readonly
Returns the value of attribute transport.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(client:, result:) ⇒ TunnelSession
constructor
A new instance of TunnelSession.
- #to_s ⇒ Object
Constructor Details
#initialize(client:, result:) ⇒ TunnelSession
Returns a new instance of TunnelSession.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 19 def initialize(client:, result:) @client = client @result = result @agent_version = @result['agent_version'] @credential = @result['credential'] @id = @result['id'] @ip = @result['ip'] @metadata = @result['metadata'] @os = @result['os'] @region = @result['region'] @started_at = @result['started_at'] @transport = @result['transport'] @uri = @result['uri'] end |
Instance Attribute Details
#agent_version ⇒ Object (readonly)
Returns the value of attribute agent_version.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def agent_version @agent_version end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def client @client end |
#credential ⇒ Object (readonly)
Returns the value of attribute credential.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def credential @credential end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def id @id end |
#ip ⇒ Object (readonly)
Returns the value of attribute ip.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def ip @ip end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def @metadata end |
#os ⇒ Object (readonly)
Returns the value of attribute os.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def os @os end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def region @region end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def result @result end |
#started_at ⇒ Object (readonly)
Returns the value of attribute started_at.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def started_at @started_at end |
#transport ⇒ Object (readonly)
Returns the value of attribute transport.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def transport @transport end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 6 def uri @uri end |
Instance Method Details
#==(other) ⇒ Object
34 35 36 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 34 def ==(other) @result == other.result end |
#to_s ⇒ Object
38 39 40 |
# File 'lib/ngrokapi/models/tunnel_session.rb', line 38 def to_s @result.to_s end |