Sha256: 20f77acf01b1810f8c49479ec664e698c434f8ba63c1d85ab90ffd4d839dfc64
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
# frozen_string_literal: true # Code generated for API Clients. DO NOT EDIT. require 'uri' module NgrokAPI module Models class Endpoint attr_reader :client, :attrs, :id, :region, :created_at, :updated_at, :public_url, :proto, :hostport, :type, :metadata, :domain, :tcp_addr, :tunnel, :edge 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'] unless @attrs['public_url'].nil? @public_url = URI(@attrs['public_url']) end @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 def ==(other) @attrs == other.attrs end def to_s @attrs.to_s end def to_h @attrs.to_h end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ngrok-api-0.23.0 | lib/ngrokapi/models/endpoint.rb |
ngrok-api-0.22.0 | lib/ngrokapi/models/endpoint.rb |
ngrok-api-0.21.0 | lib/ngrokapi/models/endpoint.rb |