Sha256: 7b7907d3b895512b2f84603f943b9e1e5da0f0d4bf6b08904931d5d2b1bb9a46
Contents?: true
Size: 761 Bytes
Versions: 4
Compression:
Stored size: 761 Bytes
Contents
# frozen_string_literal: true module NgrokAPI module Models class Tunnel attr_reader :client, :result, :id, :public_url, :started_at, :metadata, :proto, :region, :tunnel_session 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 def ==(other) @result == other.result end def to_s @result.to_s end end end end
Version data entries
4 entries across 4 versions & 1 rubygems