Class: XmlConv::Util::Mission
- Inherits:
-
Object
- Object
- XmlConv::Util::Mission
- Defined in:
- lib/xmlconv/util/polling_manager.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#backup_dir ⇒ Object
Returns the value of attribute backup_dir.
-
#debug_recipients ⇒ Object
Returns the value of attribute debug_recipients.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#error_recipients ⇒ Object
Returns the value of attribute error_recipients.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#partner ⇒ Object
Returns the value of attribute partner.
-
#postprocs ⇒ Object
Returns the value of attribute postprocs.
-
#reader ⇒ Object
Returns the value of attribute reader.
-
#tmp_destination ⇒ Object
Returns the value of attribute tmp_destination.
-
#writer ⇒ Object
Returns the value of attribute writer.
Instance Method Summary collapse
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
15 16 17 |
# File 'lib/xmlconv/util/polling_manager.rb', line 15 def arguments @arguments end |
#backup_dir ⇒ Object
Returns the value of attribute backup_dir.
15 16 17 |
# File 'lib/xmlconv/util/polling_manager.rb', line 15 def backup_dir @backup_dir end |
#debug_recipients ⇒ Object
Returns the value of attribute debug_recipients.
15 16 17 |
# File 'lib/xmlconv/util/polling_manager.rb', line 15 def debug_recipients @debug_recipients end |
#destination ⇒ Object
Returns the value of attribute destination.
15 16 17 |
# File 'lib/xmlconv/util/polling_manager.rb', line 15 def destination @destination end |
#error_recipients ⇒ Object
Returns the value of attribute error_recipients.
15 16 17 |
# File 'lib/xmlconv/util/polling_manager.rb', line 15 def error_recipients @error_recipients end |
#filter ⇒ Object
Returns the value of attribute filter.
15 16 17 |
# File 'lib/xmlconv/util/polling_manager.rb', line 15 def filter @filter end |
#partner ⇒ Object
Returns the value of attribute partner.
15 16 17 |
# File 'lib/xmlconv/util/polling_manager.rb', line 15 def partner @partner end |
#postprocs ⇒ Object
Returns the value of attribute postprocs.
15 16 17 |
# File 'lib/xmlconv/util/polling_manager.rb', line 15 def postprocs @postprocs end |
#reader ⇒ Object
Returns the value of attribute reader.
15 16 17 |
# File 'lib/xmlconv/util/polling_manager.rb', line 15 def reader @reader end |
#tmp_destination ⇒ Object
Returns the value of attribute tmp_destination.
15 16 17 |
# File 'lib/xmlconv/util/polling_manager.rb', line 15 def tmp_destination @tmp_destination end |
#writer ⇒ Object
Returns the value of attribute writer.
15 16 17 |
# File 'lib/xmlconv/util/polling_manager.rb', line 15 def writer @writer end |
Instance Method Details
#create_transaction ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/xmlconv/util/polling_manager.rb', line 18 def create_transaction transaction = XmlConv::Util::Transaction.new transaction.domain = @domain transaction.partner = @partner transaction.reader = @reader transaction.writer = @writer transaction.debug_recipients = @debug_recipients transaction.error_recipients = @error_recipients transaction.postprocs = @postprocs transaction.destination = Destination.book(@destination, @tmp_destination) transaction.arguments = [@arguments].flatten.compact transaction end |
#filtered_transaction(src, origin, &block) ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/xmlconv/util/polling_manager.rb', line 31 def filtered_transaction(src, origin, &block) unless(@filter && Regexp.new(@filter).match(src)) transaction = create_transaction transaction.input = src transaction.origin = origin block.call(transaction) end end |