Class: FileManipulator::Configuration
- Inherits:
-
Object
- Object
- FileManipulator::Configuration
- Defined in:
- lib/file_manipulator/configuration.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#merged_file_directory ⇒ Object
Returns the value of attribute merged_file_directory.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#size ⇒ Object
Returns the value of attribute size.
-
#split_files_directory ⇒ Object
Returns the value of attribute split_files_directory.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/file_manipulator/configuration.rb', line 5 def initialize @prefix ||= 'file_manipulator' @split_files_directory = 'tmp' @merged_file_directory = 'tmp' @size ||= 10_485_760 end |
Instance Attribute Details
#file_name ⇒ Object
Returns the value of attribute file_name.
3 4 5 |
# File 'lib/file_manipulator/configuration.rb', line 3 def file_name @file_name end |
#merged_file_directory ⇒ Object
Returns the value of attribute merged_file_directory.
3 4 5 |
# File 'lib/file_manipulator/configuration.rb', line 3 def merged_file_directory @merged_file_directory end |
#prefix ⇒ Object
Returns the value of attribute prefix.
3 4 5 |
# File 'lib/file_manipulator/configuration.rb', line 3 def prefix @prefix end |
#size ⇒ Object
Returns the value of attribute size.
3 4 5 |
# File 'lib/file_manipulator/configuration.rb', line 3 def size @size end |
#split_files_directory ⇒ Object
Returns the value of attribute split_files_directory.
3 4 5 |
# File 'lib/file_manipulator/configuration.rb', line 3 def split_files_directory @split_files_directory end |