Class: Envoi::Mam::Agent::TransferClient
- Inherits:
-
Object
- Object
- Envoi::Mam::Agent::TransferClient
- Defined in:
- lib/envoi/mam/agent/transfer_client.rb,
lib/envoi/mam/agent/transfer_client/s3.rb,
lib/envoi/mam/agent/transfer_client/aspera.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#agent ⇒ Object
Returns the value of attribute agent.
-
#initial_args ⇒ Object
Returns the value of attribute initial_args.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
- #after_initialize ⇒ Object
-
#initialize(args = { }) ⇒ TransferClient
constructor
A new instance of TransferClient.
- #initialize_logger(args = { }) ⇒ Object
Constructor Details
#initialize(args = { }) ⇒ TransferClient
Returns a new instance of TransferClient.
11 12 13 14 15 16 17 |
# File 'lib/envoi/mam/agent/transfer_client.rb', line 11 def initialize(args = { }) @initial_args = args @agent = args[:agent] initialize_logger(args) after_initialize end |
Instance Attribute Details
#agent ⇒ Object
Returns the value of attribute agent.
9 10 11 |
# File 'lib/envoi/mam/agent/transfer_client.rb', line 9 def agent @agent end |
#initial_args ⇒ Object
Returns the value of attribute initial_args.
9 10 11 |
# File 'lib/envoi/mam/agent/transfer_client.rb', line 9 def initial_args @initial_args end |
#logger ⇒ Object
Returns the value of attribute logger.
9 10 11 |
# File 'lib/envoi/mam/agent/transfer_client.rb', line 9 def logger @logger end |
Instance Method Details
#after_initialize ⇒ Object
19 20 21 |
# File 'lib/envoi/mam/agent/transfer_client.rb', line 19 def after_initialize # To be overridden by child class end |
#initialize_logger(args = { }) ⇒ Object
23 24 25 |
# File 'lib/envoi/mam/agent/transfer_client.rb', line 23 def initialize_logger(args = { }) @logger = agent.logger if agent && agent.respond_to?(:logger) && agent.logger end |