Sha256: f0ecb784df21f9af2e8d77e0abe0903fbd0bdffefed04f2ea7747facb41fe54c

Contents?: true

Size: 404 Bytes

Versions: 2

Compression:

Stored size: 404 Bytes

Contents

module ContentState
  class PresumedHam < Base
    include Reloadable
    include Singleton

    def enter_hook(content)
      super
      content[:published] = true
    end

    def published?(content)
      true
    end

    def withdraw(content)
      content.mark_as_spam
    end

    def confirm_classification(content)
      content.mark_as_ham
    end

    def to_s
      'Ham?'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typo-4.0.1 app/models/content_state/presumed_ham.rb
typo-4.0.2 app/models/content_state/presumed_ham.rb