Sha256: 614f6ea76756fe3cf0c832e9cbff1825536239b633cfaf3a0a8f999f7144fe3e

Contents?: true

Size: 707 Bytes

Versions: 6

Compression:

Stored size: 707 Bytes

Contents

# frozen_string_literal: true

module NgrokAPI
  module Models
    class EndpointOAuthGoogle
      attr_reader :client,
        :result,
        :client_id,
        :client_secret,
        :scopes,
        :email_addresses,
        :email_domains

      def initialize(client:, result:)
        @client = client
        @result = result
        @client_id = @result['client_id']
        @client_secret = @result['client_secret']
        @scopes = @result['scopes']
        @email_addresses = @result['email_addresses']
        @email_domains = @result['email_domains']
      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

Version Path
ngrok-api-0.18.0 lib/ngrokapi/models/endpoint_o_auth_google.rb
ngrok-api-0.17.0 lib/ngrokapi/models/endpoint_o_auth_google.rb
ngrok-api-0.16.0 lib/ngrokapi/models/endpoint_o_auth_google.rb
ngrok-api-0.15.0 lib/ngrokapi/models/endpoint_o_auth_google.rb
ngrok-api-0.14.0 lib/ngrokapi/models/endpoint_o_auth_google.rb
ngrok-api-0.12.0 lib/ngrokapi/models/endpoint_o_auth_google.rb