Class: NgrokAPI::Models::EndpointOAuthProvider

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of EndpointOAuthProvider.



19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 19

def initialize(client: nil, attrs: {})
  @client = client
  @attrs = attrs
  @github = @attrs['github']
  @facebook = @attrs['facebook']
  @microsoft = @attrs['microsoft']
  @google = @attrs['google']
  @linkedin = @attrs['linkedin']
  @gitlab = @attrs['gitlab']
  @twitch = @attrs['twitch']
  @amazon = @attrs['amazon']
end

Instance Attribute Details

#amazonObject (readonly)

Returns the value of attribute amazon.



8
9
10
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 8

def amazon
  @amazon
end

#attrsObject (readonly)

Returns the value of attribute attrs.



8
9
10
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 8

def attrs
  @attrs
end

#clientObject (readonly)

Returns the value of attribute client.



8
9
10
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 8

def client
  @client
end

#facebookObject (readonly)

Returns the value of attribute facebook.



8
9
10
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 8

def facebook
  @facebook
end

#githubObject (readonly)

Returns the value of attribute github.



8
9
10
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 8

def github
  @github
end

#gitlabObject (readonly)

Returns the value of attribute gitlab.



8
9
10
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 8

def gitlab
  @gitlab
end

#googleObject (readonly)

Returns the value of attribute google.



8
9
10
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 8

def google
  @google
end

#linkedinObject (readonly)

Returns the value of attribute linkedin.



8
9
10
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 8

def linkedin
  @linkedin
end

#microsoftObject (readonly)

Returns the value of attribute microsoft.



8
9
10
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 8

def microsoft
  @microsoft
end

#twitchObject (readonly)

Returns the value of attribute twitch.



8
9
10
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 8

def twitch
  @twitch
end

Instance Method Details

#==(other) ⇒ Object



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

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

#to_hObject



40
41
42
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 40

def to_h
  @attrs.to_h
end

#to_sObject



36
37
38
# File 'lib/ngrokapi/models/endpoint_o_auth_provider.rb', line 36

def to_s
  @attrs.to_s
end