Class: NgrokAPI::Models::EndpointOAuthGitHub

Inherits:
Object
  • Object
show all
Defined in:
lib/ngrokapi/models/endpoint_o_auth_git_hub.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:, result:) ⇒ EndpointOAuthGitHub

Returns a new instance of EndpointOAuthGitHub.



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 16

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

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 6

def client
  @client
end

#client_idObject (readonly)

Returns the value of attribute client_id.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 6

def client_id
  @client_id
end

#client_secretObject (readonly)

Returns the value of attribute client_secret.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 6

def client_secret
  @client_secret
end

#email_addressesObject (readonly)

Returns the value of attribute email_addresses.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 6

def email_addresses
  @email_addresses
end

#email_domainsObject (readonly)

Returns the value of attribute email_domains.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 6

def email_domains
  @email_domains
end

#organizationsObject (readonly)

Returns the value of attribute organizations.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 6

def organizations
  @organizations
end

#resultObject (readonly)

Returns the value of attribute result.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 6

def result
  @result
end

#scopesObject (readonly)

Returns the value of attribute scopes.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 6

def scopes
  @scopes
end

#teamsObject (readonly)

Returns the value of attribute teams.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 6

def teams
  @teams
end

Instance Method Details

#==(other) ⇒ Object



28
29
30
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 28

def ==(other)
  @result == other.result
end

#to_sObject



32
33
34
# File 'lib/ngrokapi/models/endpoint_o_auth_git_hub.rb', line 32

def to_s
  @result.to_s
end