Sha256: 70f0e1aef873874182af8a504df8c449d6912833fa2cf7eb43c854b7fad251be
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
class Sysdig::UserNotification < Sysdig::Model def self.types @_types ||= Hash.new end def self.type(k=nil) if k.nil? @key else key = k.to_s Sysdig::UserNotification.types[key] = self @key = key end end def self.inherited(klass) klass.identity :category super end attribute :enabled, type: :boolean def initialize(attributes={}) self.identity = self.class.type super end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sysdig-0.2.3 | lib/sysdig/user_notification.rb |
sysdig-0.2.0 | lib/sysdig/user_notification.rb |