Class: DataDomeAuthentication
- Inherits:
-
Object
- Object
- DataDomeAuthentication
- Defined in:
- lib/model/authentication.rb
Instance Attribute Summary collapse
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#social_provider ⇒ Object
Returns the value of attribute social_provider.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(mode: DataDomeAuthenticationMode::OTHER, type: DataDomeAuthenticationType::OTHER, social_provider: DataDomeSocialProvider::OTHER) ⇒ DataDomeAuthentication
constructor
A new instance of DataDomeAuthentication.
- #to_json(options = {}) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(mode: DataDomeAuthenticationMode::OTHER, type: DataDomeAuthenticationType::OTHER, social_provider: DataDomeSocialProvider::OTHER) ⇒ DataDomeAuthentication
Returns a new instance of DataDomeAuthentication.
34 35 36 37 38 |
# File 'lib/model/authentication.rb', line 34 def initialize(mode: DataDomeAuthenticationMode::OTHER, type: DataDomeAuthenticationType::OTHER, social_provider: DataDomeSocialProvider::OTHER) @mode = mode @type = type = end |
Instance Attribute Details
#mode ⇒ Object
Returns the value of attribute mode.
32 33 34 |
# File 'lib/model/authentication.rb', line 32 def mode @mode end |
#social_provider ⇒ Object
Returns the value of attribute social_provider.
32 33 34 |
# File 'lib/model/authentication.rb', line 32 def end |
#type ⇒ Object
Returns the value of attribute type.
32 33 34 |
# File 'lib/model/authentication.rb', line 32 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/model/authentication.rb', line 44 def to_json( = {}) { mode: @mode, type: @type, socialProvider: , }.to_json end |
#to_s ⇒ Object
40 41 42 |
# File 'lib/model/authentication.rb', line 40 def to_s "DataDomeAuthentication: mode=#{@mode}, type=#{@type}, socialProvider=#{@social_provider}" end |