Class: BulkProcessor::Config
- Inherits:
-
Object
- Object
- BulkProcessor::Config
- Defined in:
- lib/bulk_processor/config.rb
Overview
Store configuration data set by clients
Instance Attribute Summary collapse
-
#back_end ⇒ Object
Returns the value of attribute back_end.
- #file_class ⇒ Object
-
#queue_adapter ⇒ Object
Returns the value of attribute queue_adapter.
-
#temp_directory ⇒ Object
Returns the value of attribute temp_directory.
Instance Method Summary collapse
Instance Attribute Details
#back_end ⇒ Object
Returns the value of attribute back_end.
4 5 6 |
# File 'lib/bulk_processor/config.rb', line 4 def back_end @back_end end |
#file_class ⇒ Object
20 21 22 |
# File 'lib/bulk_processor/config.rb', line 20 def file_class @file_class || BulkProcessor::S3File end |
#queue_adapter ⇒ Object
Returns the value of attribute queue_adapter.
4 5 6 |
# File 'lib/bulk_processor/config.rb', line 4 def queue_adapter @queue_adapter end |
#temp_directory ⇒ Object
Returns the value of attribute temp_directory.
6 7 8 |
# File 'lib/bulk_processor/config.rb', line 6 def temp_directory @temp_directory end |
Instance Method Details
#aws ⇒ Object
24 25 26 |
# File 'lib/bulk_processor/config.rb', line 24 def aws @aws ||= Struct.new(:access_key_id, :secret_access_key, :bucket).new end |
#heroku ⇒ Object
28 29 30 |
# File 'lib/bulk_processor/config.rb', line 28 def heroku @heroku ||= Struct.new(:api_key, :app_name).new end |