mirror of
https://github.com/ngrok/ngrok-api-ruby.git
synced 2026-06-16 16:54:38 +00:00
36 lines
639 B
Ruby
36 lines
639 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Code generated for API Clients. DO NOT EDIT.
|
|
|
|
module NgrokAPI
|
|
module Models
|
|
class BrowserSession
|
|
attr_reader :client,
|
|
:attrs,
|
|
:user_agent,
|
|
:ip_address,
|
|
:location
|
|
|
|
def initialize(client: nil, attrs: {})
|
|
@client = client
|
|
@attrs = attrs
|
|
@user_agent = @attrs['user_agent']
|
|
@ip_address = @attrs['ip_address']
|
|
@location = @attrs['location']
|
|
end
|
|
|
|
def ==(other)
|
|
@attrs == other.attrs
|
|
end
|
|
|
|
def to_s
|
|
@attrs.to_s
|
|
end
|
|
|
|
def to_h
|
|
@attrs.to_h
|
|
end
|
|
end
|
|
end
|
|
end
|