class NgrokAPI::Models::EndpointOAuthGitHub

Attributes

attrs[R]
client[R]
client_id[R]
client_secret[R]
email_addresses[R]
email_domains[R]
organizations[R]
scopes[R]
teams[R]

Public Class Methods

new(client: nil, attrs: {}) click to toggle source
# File lib/ngrokapi/models/endpoint_o_auth_git_hub.rb, line 16
def initialize(client: nil, attrs: {})
  @client = client
  @attrs = attrs
  @client_id = @attrs['client_id']
  @client_secret = @attrs['client_secret']
  @scopes = @attrs['scopes']
  @email_addresses = @attrs['email_addresses']
  @email_domains = @attrs['email_domains']
  @teams = @attrs['teams']
  @organizations = @attrs['organizations']
end

Public Instance Methods

==(other) click to toggle source
# File lib/ngrokapi/models/endpoint_o_auth_git_hub.rb, line 28
def ==(other)
  @attrs == other.attrs
end
to_h() click to toggle source
# File lib/ngrokapi/models/endpoint_o_auth_git_hub.rb, line 36
def to_h
  @attrs.to_h
end
to_s() click to toggle source
# File lib/ngrokapi/models/endpoint_o_auth_git_hub.rb, line 32
def to_s
  @attrs.to_s
end