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