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