Class: Sysdig::UserNotification
- Inherits:
-
Model
- Object
- Model
- Sysdig::UserNotification
show all
- Defined in:
- lib/sysdig/user_notification.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Model
epoch_time
Constructor Details
Returns a new instance of UserNotification.
25
26
27
28
29
|
# File 'lib/sysdig/user_notification.rb', line 25
def initialize(attributes={})
self.identity = self.class.type
super
end
|
Class Method Details
.inherited(klass) ⇒ Object
17
18
19
20
21
|
# File 'lib/sysdig/user_notification.rb', line 17
def self.inherited(klass)
klass.identity :category
super
end
|
.type(k = nil) ⇒ Object
7
8
9
10
11
12
13
14
15
|
# File 'lib/sysdig/user_notification.rb', line 7
def self.type(k=nil)
if k.nil?
@key
else
key = k.to_s
Sysdig::UserNotification.types[key] = self
@key = key
end
end
|
.types ⇒ Object
3
4
5
|
# File 'lib/sysdig/user_notification.rb', line 3
def self.types
@_types ||= Hash.new
end
|