Class: Artifactory::Permissions::V2::Commands::SavePermission
- Inherits:
-
Object
- Object
- Artifactory::Permissions::V2::Commands::SavePermission
- Defined in:
- lib/artifactory/permissions/v2/commands/save_permission.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
readonly
Returns the value of attribute api_client.
-
#permission_target ⇒ Object
readonly
Returns the value of attribute permission_target.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(permission_target:, api_client:) ⇒ SavePermission
constructor
A new instance of SavePermission.
Constructor Details
#initialize(permission_target:, api_client:) ⇒ SavePermission
Returns a new instance of SavePermission.
14 15 16 17 |
# File 'lib/artifactory/permissions/v2/commands/save_permission.rb', line 14 def initialize(permission_target:, api_client:) @permission_target = @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object (readonly)
Returns the value of attribute api_client.
12 13 14 |
# File 'lib/artifactory/permissions/v2/commands/save_permission.rb', line 12 def api_client @api_client end |
#permission_target ⇒ Object (readonly)
Returns the value of attribute permission_target.
12 13 14 |
# File 'lib/artifactory/permissions/v2/commands/save_permission.rb', line 12 def @permission_target end |
Class Method Details
.call(permission_target:, api_client:) ⇒ Object
8 9 10 |
# File 'lib/artifactory/permissions/v2/commands/save_permission.rb', line 8 def self.call(permission_target:, api_client:) new(permission_target: , api_client: api_client).call end |
Instance Method Details
#call ⇒ Object
19 20 21 22 |
# File 'lib/artifactory/permissions/v2/commands/save_permission.rb', line 19 def call process end |