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