Class: NgrokAPI::Models::Tunnel
- Inherits:
-
Object
- Object
- NgrokAPI::Models::Tunnel
- Defined in:
- lib/ngrokapi/models/tunnel.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#proto ⇒ Object
readonly
Returns the value of attribute proto.
-
#public_url ⇒ Object
readonly
Returns the value of attribute public_url.
-
#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.
-
#tunnel_session ⇒ Object
readonly
Returns the value of attribute tunnel_session.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(client:, result:) ⇒ Tunnel
constructor
A new instance of Tunnel.
- #to_s ⇒ Object
Constructor Details
#initialize(client:, result:) ⇒ Tunnel
Returns a new instance of Tunnel.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ngrokapi/models/tunnel.rb', line 16 def initialize(client:, result:) @client = client @result = result @id = @result['id'] @public_url = @result['public_url'] @started_at = @result['started_at'] @metadata = @result['metadata'] @proto = @result['proto'] @region = @result['region'] @tunnel_session = @result['tunnel_session'] end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel.rb', line 6 def client @client end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel.rb', line 6 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel.rb', line 6 def @metadata end |
#proto ⇒ Object (readonly)
Returns the value of attribute proto.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel.rb', line 6 def proto @proto end |
#public_url ⇒ Object (readonly)
Returns the value of attribute public_url.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel.rb', line 6 def public_url @public_url end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel.rb', line 6 def region @region end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel.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.rb', line 6 def started_at @started_at end |
#tunnel_session ⇒ Object (readonly)
Returns the value of attribute tunnel_session.
6 7 8 |
# File 'lib/ngrokapi/models/tunnel.rb', line 6 def tunnel_session @tunnel_session end |
Instance Method Details
#==(other) ⇒ Object
28 29 30 |
# File 'lib/ngrokapi/models/tunnel.rb', line 28 def ==(other) @result == other.result end |
#to_s ⇒ Object
32 33 34 |
# File 'lib/ngrokapi/models/tunnel.rb', line 32 def to_s @result.to_s end |