Class: Sem4r::JobOperation
- Defined in:
- lib/sem4r/bulk_mutate_job/job_operations.rb
Instance Attribute Summary
Attributes inherited from Operation
Instance Method Summary collapse
-
#initialize(&block) ⇒ JobOperation
constructor
A new instance of JobOperation.
Methods inherited from Operation
#_xml, add, #add, remove, #remove, set, #set, #to_xml, #xml
Methods included from Sem4rSoap::SoapAttributes
#_from_element, #_to_s, #_to_xml, included
Constructor Details
#initialize(&block) ⇒ JobOperation
Returns a new instance of JobOperation.
28 29 30 31 32 33 |
# File 'lib/sem4r/bulk_mutate_job/job_operations.rb', line 28 def initialize(&block) @operation_type = "JobOperation" if block_given? block.arity < 1 ? instance_eval(&block) : block.call(self) end end |