Sha256: f94c7904c58926cfc6ceb40530cc64496a48dfabeae83d978f83a3ca7ee4e74b

Contents?: true

Size: 826 Bytes

Versions: 4

Compression:

Stored size: 826 Bytes

Contents

# frozen_string_literal: true

# Code generated for API Clients. DO NOT EDIT.

module NgrokAPI
  module Models
    class UserAgent
      attr_reader :client,
        :attrs,
        :raw,
        :browser_name,
        :browser_version,
        :device_type,
        :os_name,
        :os_version

      def initialize(client: nil, attrs: {})
        @client = client
        @attrs = attrs
        @raw = @attrs['raw']
        @browser_name = @attrs['browser_name']
        @browser_version = @attrs['browser_version']
        @device_type = @attrs['device_type']
        @os_name = @attrs['os_name']
        @os_version = @attrs['os_version']
      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/user_agent.rb
ngrok-api-0.23.0 lib/ngrokapi/models/user_agent.rb
ngrok-api-0.22.0 lib/ngrokapi/models/user_agent.rb
ngrok-api-0.21.0 lib/ngrokapi/models/user_agent.rb