class Hodor::Oozie::Bundle

Attributes

json[R]
status[R]

Public Class Methods

default_columns() click to toggle source
# File lib/hodor/api/oozie/bundle.rb, line 8
def default_columns
  [:index, :id, :status]
end
new(json) click to toggle source
Calls superclass method
# File lib/hodor/api/oozie/bundle.rb, line 13
def initialize(json)
  super()
  @json = json
  @status = json["status"]
end

Public Instance Methods

expand() click to toggle source
# File lib/hodor/api/oozie/bundle.rb, line 19
def expand
  # Expand immediate children
  @coordinators = json["coords"].map do |item|
    Coordinator.new(item)
  end.compact
end