Class: Stripe::Apps::Secret::FindParams::Scope

Inherits:
RequestParams show all
Defined in:
lib/stripe/resources/apps/secret.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.



110
111
112
113
# File 'lib/stripe/resources/apps/secret.rb', line 110

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

Instance Attribute Details

#typeObject

The secret scope type.



106
107
108
# File 'lib/stripe/resources/apps/secret.rb', line 106

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`.



108
109
110
# File 'lib/stripe/resources/apps/secret.rb', line 108

def user
  @user
end