Sha256: 50671912f75b44e0f4b90b14a7e3dfc326f55c42d135b4bad07e3ea026c2ae80

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 Bytes

Contents

module Hodor::Oozie

  class Bundle < Job

    attr_reader :status, :json

    class << self
      def default_columns
        [:index, :id, :status]
      end
    end

    def initialize(json)
      super()
      @json = json
      @status = json["status"]
    end

    def expand
      # Expand immediate children
      @coordinators = json["coords"].map do |item|
        Coordinator.new(item)
      end.compact
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hodor-1.0.2 lib/hodor/api/oozie/bundle.rb