Sha256: 66e0fbcd74e45eaa11aea3cd82a3cc527ec9641099c547b9c30c4e20d855f148

Contents?: true

Size: 486 Bytes

Versions: 12

Compression:

Stored size: 486 Bytes

Contents

module Shipit
  class Status
    class Missing
      include Common

      attr_reader :commit, :context

      def initialize(commit, context)
        @commit = commit
        @context = context
      end

      def target_url
        nil
      end

      def state
        'pending'.freeze
      end

      def description
        I18n.t('missing_status.description', context: context)
      end

      def to_partial_path
        'shipit/statuses/status'
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
shipit-engine-0.24.0 app/models/shipit/status/missing.rb
shipit-engine-0.23.1 app/models/shipit/status/missing.rb
shipit-engine-0.23.0 app/models/shipit/status/missing.rb
shipit-engine-0.22.0 app/models/shipit/status/missing.rb
shipit-engine-0.21.0 app/models/shipit/status/missing.rb
shipit-engine-0.20.1 app/models/shipit/status/missing.rb
shipit-engine-0.20.0 app/models/shipit/status/missing.rb
shipit-engine-0.19.0 app/models/shipit/status/missing.rb
shipit-engine-0.18.1 app/models/shipit/status/missing.rb
shipit-engine-0.18.0 app/models/shipit/status/missing.rb
shipit-engine-0.17.0 app/models/shipit/status/missing.rb
shipit-engine-0.16.0 app/models/shipit/status/missing.rb