Class: Hodor::Oozie::Bundle
Instance Attribute Summary collapse
-
#json ⇒ Object
readonly
Returns the value of attribute json.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Attributes inherited from Job
#columns, #conf, #id, #index, #parent_id, #rest_call, #skip_to
Class Method Summary collapse
Instance Method Summary collapse
- #expand ⇒ Object
-
#initialize(json) ⇒ Bundle
constructor
A new instance of Bundle.
Methods inherited from Job
#child_columns, #children, #children_title, #conf_map, #definition, #display_as_array, #display_as_time, #display_children, #display_properties, #indexed_job_id, #log, #oozie, #parse_time, #sanitize, #session, #set_index, #title
Constructor Details
#initialize(json) ⇒ Bundle
Returns a new instance of Bundle.
13 14 15 16 17 |
# File 'lib/hodor/api/oozie/bundle.rb', line 13 def initialize(json) super() @json = json @status = json["status"] end |
Instance Attribute Details
#json ⇒ Object (readonly)
Returns the value of attribute json.
5 6 7 |
# File 'lib/hodor/api/oozie/bundle.rb', line 5 def json @json end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/hodor/api/oozie/bundle.rb', line 5 def status @status end |
Class Method Details
.default_columns ⇒ Object
8 9 10 |
# File 'lib/hodor/api/oozie/bundle.rb', line 8 def default_columns [:index, :id, :status] end |
Instance Method Details
#expand ⇒ Object
19 20 21 22 23 24 |
# File 'lib/hodor/api/oozie/bundle.rb', line 19 def # Expand immediate children @coordinators = json["coords"].map do |item| Coordinator.new(item) end.compact end |