Class: Cerbos::Hub::Stores::Input::FileOperation::AddOrUpdate
- Inherits:
-
Cerbos::Hub::Stores::Input::FileOperation
- Object
- Cerbos::Hub::Stores::Input::FileOperation
- Cerbos::Hub::Stores::Input::FileOperation::AddOrUpdate
- Defined in:
- lib/cerbos/hub/stores/input/file_operation.rb
Overview
Add or update a file.
Instance Attribute Summary collapse
-
#file ⇒ File
readonly
The file to add or update.
Instance Method Summary collapse
-
#initialize(file:) ⇒ AddOrUpdate
constructor
Specify a file to add or update.
Constructor Details
#initialize(file:) ⇒ AddOrUpdate
Specify a file to add or update.
23 24 25 |
# File 'lib/cerbos/hub/stores/input/file_operation.rb', line 23 def initialize(file:) @file = Cerbos::Input.coerce_required(file, File) end |
Instance Attribute Details
#file ⇒ File (readonly)
The file to add or update.
18 19 20 |
# File 'lib/cerbos/hub/stores/input/file_operation.rb', line 18 def file @file end |