Class: BulkProcessor::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/bulk_processor/config.rb

Overview

Store configuration data set by clients

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#back_endObject

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_classObject



20
21
22
# File 'lib/bulk_processor/config.rb', line 20

def file_class
  @file_class || BulkProcessor::S3File
end

#queue_adapterObject

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_directoryObject

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

#awsObject



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

#herokuObject



28
29
30
# File 'lib/bulk_processor/config.rb', line 28

def heroku
  @heroku ||= Struct.new(:api_key, :app_name).new
end