Sha256: 26922e4a4fac2de76faf45b3626ccce4b32f59673ab47e5c61a9dbcca5b7d076

Contents?: true

Size: 831 Bytes

Versions: 6

Compression:

Stored size: 831 Bytes

Contents

# frozen_string_literal: true

module NgrokAPI
  module Models
    class EndpointOAuthGitHub
      attr_reader :client,
        :result,
        :client_id,
        :client_secret,
        :scopes,
        :email_addresses,
        :email_domains,
        :teams,
        :organizations

      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']
        @teams = @result['teams']
        @organizations = @result['organizations']
      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_git_hub.rb
ngrok-api-0.17.0 lib/ngrokapi/models/endpoint_o_auth_git_hub.rb
ngrok-api-0.16.0 lib/ngrokapi/models/endpoint_o_auth_git_hub.rb
ngrok-api-0.15.0 lib/ngrokapi/models/endpoint_o_auth_git_hub.rb
ngrok-api-0.14.0 lib/ngrokapi/models/endpoint_o_auth_git_hub.rb
ngrok-api-0.12.0 lib/ngrokapi/models/endpoint_o_auth_git_hub.rb