Class: Herald::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/herald/item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message, data)
  @title = title
  @message = message
  @data = data
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



4
5
6
# File 'lib/herald/item.rb', line 4

def data
  @data
end

#messageObject

Returns the value of attribute message.



4
5
6
# File 'lib/herald/item.rb', line 4

def message
  @message
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/herald/item.rb', line 4

def title
  @title
end