Sha256: c15fecb4d8c6bd31af720b3f39baf582d3a9898e9e9b45e127532bfd09327f29
Contents?: true
Size: 903 Bytes
Versions: 6
Compression:
Stored size: 903 Bytes
Contents
# frozen_string_literal: true module NgrokAPI module Models class TunnelSession attr_reader :client, :result, :agent_version, :credential, :id, :ip, :metadata, :os, :region, :started_at, :transport, :uri def initialize(client:, result:) @client = client @result = result @agent_version = @result['agent_version'] @credential = @result['credential'] @id = @result['id'] @ip = @result['ip'] @metadata = @result['metadata'] @os = @result['os'] @region = @result['region'] @started_at = @result['started_at'] @transport = @result['transport'] @uri = @result['uri'] end def ==(other) @result == other.result end def to_s @result.to_s end end end end
Version data entries
6 entries across 6 versions & 1 rubygems