Class: Appwrite::Models::OAuth2Disqus
- Inherits:
-
Object
- Object
- Appwrite::Models::OAuth2Disqus
- Defined in:
- lib/appwrite/models/o_auth2_disqus.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#public_key ⇒ Object
readonly
Returns the value of attribute public_key.
-
#secret_key ⇒ Object
readonly
Returns the value of attribute secret_key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, enabled:, public_key:, secret_key:) ⇒ OAuth2Disqus
constructor
A new instance of OAuth2Disqus.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, enabled:, public_key:, secret_key:) ⇒ OAuth2Disqus
Returns a new instance of OAuth2Disqus.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/appwrite/models/o_auth2_disqus.rb', line 11 def initialize( id:, enabled:, public_key:, secret_key: ) @id = id @enabled = enabled @public_key = public_key @secret_key = secret_key end |
Instance Attribute Details
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
7 8 9 |
# File 'lib/appwrite/models/o_auth2_disqus.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_disqus.rb', line 6 def id @id end |
#public_key ⇒ Object (readonly)
Returns the value of attribute public_key.
8 9 10 |
# File 'lib/appwrite/models/o_auth2_disqus.rb', line 8 def public_key @public_key end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
9 10 11 |
# File 'lib/appwrite/models/o_auth2_disqus.rb', line 9 def secret_key @secret_key end |
Class Method Details
.from(map:) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/appwrite/models/o_auth2_disqus.rb', line 23 def self.from(map:) OAuth2Disqus.new( id: map["$id"], enabled: map["enabled"], public_key: map["publicKey"], secret_key: map["secretKey"] ) end |
Instance Method Details
#to_map ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/appwrite/models/o_auth2_disqus.rb', line 32 def to_map { "$id": @id, "enabled": @enabled, "publicKey": @public_key, "secretKey": @secret_key } end |