Class: Appwrite::Models::OAuth2X
- Inherits:
-
Object
- Object
- Appwrite::Models::OAuth2X
- Defined in:
- lib/appwrite/models/o_auth2_x.rb
Instance Attribute Summary collapse
-
#customer_key ⇒ Object
readonly
Returns the value of attribute customer_key.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#secret_key ⇒ Object
readonly
Returns the value of attribute secret_key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, enabled:, customer_key:, secret_key:) ⇒ OAuth2X
constructor
A new instance of OAuth2X.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, enabled:, customer_key:, secret_key:) ⇒ OAuth2X
Returns a new instance of OAuth2X.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/appwrite/models/o_auth2_x.rb', line 11 def initialize( id:, enabled:, customer_key:, secret_key: ) @id = id @enabled = enabled @customer_key = customer_key @secret_key = secret_key end |
Instance Attribute Details
#customer_key ⇒ Object (readonly)
Returns the value of attribute customer_key.
8 9 10 |
# File 'lib/appwrite/models/o_auth2_x.rb', line 8 def customer_key @customer_key end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
7 8 9 |
# File 'lib/appwrite/models/o_auth2_x.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_x.rb', line 6 def id @id end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
9 10 11 |
# File 'lib/appwrite/models/o_auth2_x.rb', line 9 def secret_key @secret_key end |
Class Method Details
Instance Method Details
#to_map ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/appwrite/models/o_auth2_x.rb', line 32 def to_map { "$id": @id, "enabled": @enabled, "customerKey": @customer_key, "secretKey": @secret_key } end |