Class: Stripe::Apps::SecretService::ListParams::Scope

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/apps/secret_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(type: nil, user: nil) ⇒ Scope

Returns a new instance of Scope.



15
16
17
18
# File 'lib/stripe/services/apps/secret_service.rb', line 15

def initialize(type: nil, user: nil)
  @type = type
  @user = user
end

Instance Attribute Details

#typeObject

The secret scope type.



10
11
12
# File 'lib/stripe/services/apps/secret_service.rb', line 10

def type
  @type
end

#userObject

The user ID. This field is required if ‘type` is set to `user`, and should not be provided if `type` is set to `account`.



13
14
15
# File 'lib/stripe/services/apps/secret_service.rb', line 13

def user
  @user
end