Class: S3FileHandler::BaseOperation
- Inherits:
-
Object
- Object
- S3FileHandler::BaseOperation
- Defined in:
- lib/s3_file_handler/base_operation.rb
Direct Known Subclasses
S3FileHandler::Bucket::Create, S3FileHandler::Bucket::Delete, S3FileHandler::Bucket::Exists, S3FileHandler::Bucket::List, CSV::AddColumn, CSV::AppendRow, CSV::Create, File::Delete, File::Exists, File::Read, File::Upload, Folder::Create, Folder::Delete, Folder::Exists, Folder::List
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(client: S3FileHandler.client) ⇒ BaseOperation
constructor
A new instance of BaseOperation.
Constructor Details
#initialize(client: S3FileHandler.client) ⇒ BaseOperation
Returns a new instance of BaseOperation.
7 8 9 10 |
# File 'lib/s3_file_handler/base_operation.rb', line 7 def initialize(client: S3FileHandler.client) @client = client @errors = [] end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/s3_file_handler/base_operation.rb', line 5 def client @client end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/s3_file_handler/base_operation.rb', line 5 def errors @errors end |
Instance Method Details
#execute ⇒ Object
12 13 14 |
# File 'lib/s3_file_handler/base_operation.rb', line 12 def execute raise NotImplementedError, 'Subclasses must implement the execute method' end |