unhappychoice/circleci-cli

View on GitHub
lib/circleci/cli/response/step.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module CircleCI
  module CLI
    module Response
      class Step
        attr_reader :type, :status

        def initialize(type, hash)
          @type = type
          @status = hash['status']
          @hash = hash
        end

        def actions
          @hash['actions'].map { |a| Action.new(a) }
        end
      end
    end
  end
end