mirror of
https://github.com/ngrok/ngrok-api-ruby.git
synced 2026-05-17 16:50:40 +00:00
38 lines
724 B
Ruby
38 lines
724 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Code generated for API Clients. DO NOT EDIT.
|
|
|
|
module NgrokAPI
|
|
module Models
|
|
class Location
|
|
attr_reader :client,
|
|
:attrs,
|
|
:country_code,
|
|
:latitude,
|
|
:longitude,
|
|
:lat_long_radius_km
|
|
|
|
def initialize(client: nil, attrs: {})
|
|
@client = client
|
|
@attrs = attrs
|
|
@country_code = @attrs['country_code']
|
|
@latitude = @attrs['latitude']
|
|
@longitude = @attrs['longitude']
|
|
@lat_long_radius_km = @attrs['lat_long_radius_km']
|
|
end
|
|
|
|
def ==(other)
|
|
@attrs == other.attrs
|
|
end
|
|
|
|
def to_s
|
|
@attrs.to_s
|
|
end
|
|
|
|
def to_h
|
|
@attrs.to_h
|
|
end
|
|
end
|
|
end
|
|
end
|