Class: JobDefinition
- Inherits:
-
Object
- Object
- JobDefinition
- Defined in:
- lib/gorgon/job_definition.rb
Instance Attribute Summary collapse
-
#callbacks ⇒ Object
Returns the value of attribute callbacks.
-
#file_queue_name ⇒ Object
Returns the value of attribute file_queue_name.
-
#reply_exchange_name ⇒ Object
Returns the value of attribute reply_exchange_name.
-
#source_tree_path ⇒ Object
Returns the value of attribute source_tree_path.
-
#sync_exclude ⇒ Object
Returns the value of attribute sync_exclude.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ JobDefinition
constructor
A new instance of JobDefinition.
- #to_json ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ JobDefinition
Returns a new instance of JobDefinition.
6 7 8 9 10 11 12 |
# File 'lib/gorgon/job_definition.rb', line 6 def initialize(opts={}) @file_queue_name = opts[:file_queue_name] @reply_exchange_name = opts[:reply_exchange_name] @source_tree_path = opts[:source_tree_path] @callbacks = opts[:callbacks] @sync_exclude = opts[:sync_exclude] end |
Instance Attribute Details
#callbacks ⇒ Object
Returns the value of attribute callbacks.
4 5 6 |
# File 'lib/gorgon/job_definition.rb', line 4 def callbacks @callbacks end |
#file_queue_name ⇒ Object
Returns the value of attribute file_queue_name.
4 5 6 |
# File 'lib/gorgon/job_definition.rb', line 4 def file_queue_name @file_queue_name end |
#reply_exchange_name ⇒ Object
Returns the value of attribute reply_exchange_name.
4 5 6 |
# File 'lib/gorgon/job_definition.rb', line 4 def reply_exchange_name @reply_exchange_name end |
#source_tree_path ⇒ Object
Returns the value of attribute source_tree_path.
4 5 6 |
# File 'lib/gorgon/job_definition.rb', line 4 def source_tree_path @source_tree_path end |
#sync_exclude ⇒ Object
Returns the value of attribute sync_exclude.
4 5 6 |
# File 'lib/gorgon/job_definition.rb', line 4 def sync_exclude @sync_exclude end |
Instance Method Details
#to_json ⇒ Object
14 15 16 |
# File 'lib/gorgon/job_definition.rb', line 14 def to_json Yajl::Encoder.encode(to_hash) end |