class NgrokAPI::Models::Endpoint
Attributes
attrs[R]
client[R]
created_at[R]
domain[R]
edge[R]
hostport[R]
id[R]
metadata[R]
proto[R]
public_url[R]
region[R]
tcp_addr[R]
tunnel[R]
type[R]
updated_at[R]
Public Class Methods
new(client: nil, attrs: {})
click to toggle source
# File lib/ngrokapi/models/endpoint.rb, line 22 def initialize(client: nil, attrs: {}) @client = client @attrs = attrs @id = @attrs['id'] @region = @attrs['region'] @created_at = @attrs['created_at'] @updated_at = @attrs['updated_at'] @public_url = @attrs['public_url'] @proto = @attrs['proto'] @hostport = @attrs['hostport'] @type = @attrs['type'] @metadata = @attrs['metadata'] @domain = @attrs['domain'] @tcp_addr = @attrs['tcp_addr'] @tunnel = @attrs['tunnel'] @edge = @attrs['edge'] end
Public Instance Methods
==(other)
click to toggle source
# File lib/ngrokapi/models/endpoint.rb, line 40 def ==(other) @attrs == other.attrs end
to_h()
click to toggle source
# File lib/ngrokapi/models/endpoint.rb, line 48 def to_h @attrs.to_h end
to_s()
click to toggle source
# File lib/ngrokapi/models/endpoint.rb, line 44 def to_s @attrs.to_s end