Class: ActsAsNotifiableRedmine::Event
- Inherits:
-
Object
- Object
- ActsAsNotifiableRedmine::Event
- Defined in:
- lib/acts_as_notifiable_redmine/event.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#sticky ⇒ Object
(also: #sticky?)
readonly
Returns the value of attribute sticky.
Instance Method Summary collapse
-
#initialize(id, options = {}) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(id, options = {}) ⇒ Event
Returns a new instance of Event.
7 8 9 10 11 |
# File 'lib/acts_as_notifiable_redmine/event.rb', line 7 def initialize(id, = {}) @id = id.to_sym @name = @id @sticky = [:sticky] || false end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/acts_as_notifiable_redmine/event.rb', line 4 def name @name end |
#sticky ⇒ Object (readonly) Also known as: sticky?
Returns the value of attribute sticky.
4 5 6 |
# File 'lib/acts_as_notifiable_redmine/event.rb', line 4 def sticky @sticky end |