Sha256: aad253f12023bcf0afe5c11ce36ebd26502a8563348e7db4bb3a6e03d52e10a5

Contents?: true

Size: 724 Bytes

Versions: 4

Compression:

Stored size: 724 Bytes

Contents

# 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ngrok-api-0.24.0 lib/ngrokapi/models/location.rb
ngrok-api-0.23.0 lib/ngrokapi/models/location.rb
ngrok-api-0.22.0 lib/ngrokapi/models/location.rb
ngrok-api-0.21.0 lib/ngrokapi/models/location.rb