Class: ActsAsNotifiableRedmine::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/acts_as_notifiable_redmine/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  @id     = id.to_sym
  @name   = @id
  @sticky = options[:sticky] || false
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/acts_as_notifiable_redmine/event.rb', line 4

def name
  @name
end

#stickyObject (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