Class: KirguduBase::StickyNotification

Inherits:
Object
  • Object
show all
Defined in:
app/models/kirgudu_base/sticky_notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ StickyNotification

Returns a new instance of StickyNotification.



8
9
10
11
12
# File 'app/models/kirgudu_base/sticky_notification.rb', line 8

def initialize(options = {})
  options ||={}
  self.title = options[:title]
  self.message = options[:message]
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



5
6
7
# File 'app/models/kirgudu_base/sticky_notification.rb', line 5

def message
  @message
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'app/models/kirgudu_base/sticky_notification.rb', line 4

def title
  @title
end