Class: NgrokAPI::Models::EndpointOAuthGoogle

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client: nil, attrs: {}) ⇒ EndpointOAuthGoogle

Returns a new instance of EndpointOAuthGoogle.



14
15
16
17
18
19
20
21
22
# File 'lib/ngrokapi/models/endpoint_o_auth_google.rb', line 14

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']
end

Instance Attribute Details

#attrsObject (readonly)

Returns the value of attribute attrs.



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

def attrs
  @attrs
end

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth_google.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_google.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_google.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_google.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_google.rb', line 6

def email_domains
  @email_domains
end

#scopesObject (readonly)

Returns the value of attribute scopes.



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

def scopes
  @scopes
end

Instance Method Details

#==(other) ⇒ Object



24
25
26
# File 'lib/ngrokapi/models/endpoint_o_auth_google.rb', line 24

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

#to_hObject



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

def to_h
  @attrs.to_h
end

#to_sObject



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

def to_s
  @attrs.to_s
end