Class: NgrokAPI::Models::Endpoint
- Inherits:
-
Object
- Object
- NgrokAPI::Models::Endpoint
- Defined in:
- lib/ngrokapi/models/endpoint.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#edge ⇒ Object
readonly
Returns the value of attribute edge.
-
#hostport ⇒ Object
readonly
Returns the value of attribute hostport.
-
#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.
-
#tcp_addr ⇒ Object
readonly
Returns the value of attribute tcp_addr.
-
#tunnel ⇒ Object
readonly
Returns the value of attribute tunnel.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(client:, result:) ⇒ Endpoint
constructor
A new instance of Endpoint.
- #to_s ⇒ Object
Constructor Details
#initialize(client:, result:) ⇒ Endpoint
Returns a new instance of Endpoint.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/ngrokapi/models/endpoint.rb', line 22 def initialize(client:, result:) @client = client @result = result @id = @result['id'] @region = @result['region'] @created_at = @result['created_at'] @updated_at = @result['updated_at'] @public_url = @result['public_url'] @proto = @result['proto'] @hostport = @result['hostport'] @type = @result['type'] @metadata = @result['metadata'] @domain = @result['domain'] @tcp_addr = @result['tcp_addr'] @tunnel = @result['tunnel'] @edge = @result['edge'] end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def client @client end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def created_at @created_at end |
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def domain @domain end |
#edge ⇒ Object (readonly)
Returns the value of attribute edge.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def edge @edge end |
#hostport ⇒ Object (readonly)
Returns the value of attribute hostport.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def hostport @hostport end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def @metadata end |
#proto ⇒ Object (readonly)
Returns the value of attribute proto.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.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/endpoint.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/endpoint.rb', line 6 def region @region end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def result @result end |
#tcp_addr ⇒ Object (readonly)
Returns the value of attribute tcp_addr.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def tcp_addr @tcp_addr end |
#tunnel ⇒ Object (readonly)
Returns the value of attribute tunnel.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def tunnel @tunnel end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def type @type end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
6 7 8 |
# File 'lib/ngrokapi/models/endpoint.rb', line 6 def updated_at @updated_at end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 |
# File 'lib/ngrokapi/models/endpoint.rb', line 40 def ==(other) @result == other.result end |
#to_s ⇒ Object
44 45 46 |
# File 'lib/ngrokapi/models/endpoint.rb', line 44 def to_s @result.to_s end |