Class: ExtensisPortfolio::Job
- Inherits:
-
Object
- Object
- ExtensisPortfolio::Job
- Defined in:
- lib/extensis_portfolio/job.rb
Instance Method Summary collapse
-
#initialize(source_image, tasks) ⇒ Job
constructor
Creates a new instance of ExtensisPortfolio::Job.
-
#to_hash ⇒ Hash
Returns a Hash for use in a soap request.
Constructor Details
#initialize(source_image, tasks) ⇒ Job
Creates a new instance of ExtensisPortfolio::Job
7 8 9 10 |
# File 'lib/extensis_portfolio/job.rb', line 7 def initialize(source_image, tasks) @source_image = source_image @tasks = tasks.map(&:to_hash) end |
Instance Method Details
#to_hash ⇒ Hash
Returns a Hash for use in a soap request
15 16 17 18 19 20 |
# File 'lib/extensis_portfolio/job.rb', line 15 def to_hash { source_image: @source_image, tasks: @tasks } end |