Class: Appwrite::Models::OAuth2Microsoft
- Inherits:
-
Object
- Object
- Appwrite::Models::OAuth2Microsoft
- Defined in:
- lib/appwrite/models/o_auth2_microsoft.rb
Instance Attribute Summary collapse
-
#application_id ⇒ Object
readonly
Returns the value of attribute application_id.
-
#application_secret ⇒ Object
readonly
Returns the value of attribute application_secret.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#tenant ⇒ Object
readonly
Returns the value of attribute tenant.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, enabled:, application_id:, application_secret:, tenant:) ⇒ OAuth2Microsoft
constructor
A new instance of OAuth2Microsoft.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, enabled:, application_id:, application_secret:, tenant:) ⇒ OAuth2Microsoft
Returns a new instance of OAuth2Microsoft.
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/appwrite/models/o_auth2_microsoft.rb', line 12 def initialize( id:, enabled:, application_id:, application_secret:, tenant: ) @id = id @enabled = enabled @application_id = application_id @application_secret = application_secret @tenant = tenant end |
Instance Attribute Details
#application_id ⇒ Object (readonly)
Returns the value of attribute application_id.
8 9 10 |
# File 'lib/appwrite/models/o_auth2_microsoft.rb', line 8 def application_id @application_id end |
#application_secret ⇒ Object (readonly)
Returns the value of attribute application_secret.
9 10 11 |
# File 'lib/appwrite/models/o_auth2_microsoft.rb', line 9 def application_secret @application_secret end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
7 8 9 |
# File 'lib/appwrite/models/o_auth2_microsoft.rb', line 7 def enabled @enabled end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/o_auth2_microsoft.rb', line 6 def id @id end |
#tenant ⇒ Object (readonly)
Returns the value of attribute tenant.
10 11 12 |
# File 'lib/appwrite/models/o_auth2_microsoft.rb', line 10 def tenant @tenant end |
Class Method Details
.from(map:) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/appwrite/models/o_auth2_microsoft.rb', line 26 def self.from(map:) OAuth2Microsoft.new( id: map["$id"], enabled: map["enabled"], application_id: map["applicationId"], application_secret: map["applicationSecret"], tenant: map["tenant"] ) end |
Instance Method Details
#to_map ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/appwrite/models/o_auth2_microsoft.rb', line 36 def to_map { "$id": @id, "enabled": @enabled, "applicationId": @application_id, "applicationSecret": @application_secret, "tenant": @tenant } end |