Class: Stripe::Apps::SecretService::CreateParams::Scope
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Apps::SecretService::CreateParams::Scope
- Defined in:
- lib/stripe/services/apps/secret_service.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
The secret scope type.
-
#user ⇒ Object
The user ID.
Instance Method Summary collapse
-
#initialize(type: nil, user: nil) ⇒ Scope
constructor
A new instance of Scope.
Methods inherited from RequestParams
Constructor Details
#initialize(type: nil, user: nil) ⇒ Scope
Returns a new instance of Scope.
46 47 48 49 |
# File 'lib/stripe/services/apps/secret_service.rb', line 46 def initialize(type: nil, user: nil) @type = type @user = user end |
Instance Attribute Details
#type ⇒ Object
The secret scope type.
42 43 44 |
# File 'lib/stripe/services/apps/secret_service.rb', line 42 def type @type end |
#user ⇒ Object
The user ID. This field is required if ‘type` is set to `user`, and should not be provided if `type` is set to `account`.
44 45 46 |
# File 'lib/stripe/services/apps/secret_service.rb', line 44 def user @user end |