Sha256: 6384801dcab9adda976ceb1216f191ebf15bd1ac495153f73e17b49768cd46ea

Contents?: true

Size: 528 Bytes

Versions: 14

Compression:

Stored size: 528 Bytes

Contents

module KB
  class Symptom
    include Inspectionable
    include ActiveModel::Model
    include ActiveModel::Attributes
    include ActiveModel::Serializers::JSON

    attribute :key, :string
    attribute :name, :string
    attribute :presence, :string
    attribute :duration, :string
    attribute :frequency, :string

    attribute :urgency, :string
    attribute :article, :string, default: ''

    alias_attribute :information, :article

    def urgent
      return false if urgency == 'low'

      true
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
barkibu-kb-0.27.0 lib/kb/models/symptom.rb
barkibu-kb-0.26.0 lib/kb/models/symptom.rb
barkibu-kb-0.25.0 lib/kb/models/symptom.rb
barkibu-kb-0.24.1 lib/kb/models/symptom.rb
barkibu-kb-0.24.0 lib/kb/models/symptom.rb
barkibu-kb-0.23.0 lib/kb/models/symptom.rb
barkibu-kb-0.22.0 lib/kb/models/symptom.rb
barkibu-kb-0.21.0 lib/kb/models/symptom.rb
barkibu-kb-0.20.0 lib/kb/models/symptom.rb
barkibu-kb-0.19.0 lib/kb/models/symptom.rb
barkibu-kb-0.18.0 lib/kb/models/symptom.rb
barkibu-kb-0.17.0 lib/kb/models/symptom.rb
barkibu-kb-0.16.2 lib/kb/models/symptom.rb
barkibu-kb-0.16.1 lib/kb/models/symptom.rb