Class: NgrokAPI::Models::EndpointOAuthFacebook

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of EndpointOAuthFacebook.



16
17
18
19
20
21
22
23
24
# File 'lib/ngrokapi/models/endpoint_o_auth_facebook.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']
end

Instance Attribute Details

#attrs ⇒ Object (readonly)

Returns the value of attribute attrs.



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

def attrs
  @attrs
end

#client ⇒ Object (readonly)

Returns the value of attribute client.



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

def client
  @client
end

#client_id ⇒ Object (readonly)

Returns the value of attribute client_id.



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

def client_id
  @client_id
end

#client_secret ⇒ Object (readonly)

Returns the value of attribute client_secret.



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

def client_secret
  @client_secret
end

#email_addresses ⇒ Object (readonly)

Returns the value of attribute email_addresses.



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

def email_addresses
  @email_addresses
end

#email_domains ⇒ Object (readonly)

Returns the value of attribute email_domains.



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

def email_domains
  @email_domains
end

#scopes ⇒ Object (readonly)

Returns the value of attribute scopes.



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

def scopes
  @scopes
end

Instance Method Details

#==(other) ⇒ Object



26
27
28
# File 'lib/ngrokapi/models/endpoint_o_auth_facebook.rb', line 26

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

#to_h ⇒ Object



34
35
36
# File 'lib/ngrokapi/models/endpoint_o_auth_facebook.rb', line 34

def to_h
  @attrs.to_h
end

#to_s ⇒ Object



30
31
32
# File 'lib/ngrokapi/models/endpoint_o_auth_facebook.rb', line 30

def to_s
  @attrs.to_s
end