Class: Herald::Item
- Inherits:
-
Object
- Object
- Herald::Item
- Defined in:
- lib/herald/item.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#message ⇒ Object
Returns the value of attribute message.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, message, data) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(title, message, data) ⇒ Item
Returns a new instance of Item.
6 7 8 9 10 |
# File 'lib/herald/item.rb', line 6 def initialize(title, , data) @title = title @message = @data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/herald/item.rb', line 4 def data @data end |
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/herald/item.rb', line 4 def @message end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/herald/item.rb', line 4 def title @title end |