Class: UiHelper::SummaryItem

Inherits:
Object
  • Object
show all
Defined in:
app/models/ui_helper/summary_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ SummaryItem

Returns a new instance of SummaryItem


10
11
12
13
14
15
16
# File 'app/models/ui_helper/summary_item.rb', line 10

def initialize(options = {})
  @message = options[:message]
  @object  = options[:object]
  @timestamp = options[:timestamp]
  @external_link = options[:external_link]
  @external_message = options[:external_message]
end

Instance Attribute Details

Returns the value of attribute external_link


7
8
9
# File 'app/models/ui_helper/summary_item.rb', line 7

def external_link
  @external_link
end

#external_messageObject

Returns the value of attribute external_message


8
9
10
# File 'app/models/ui_helper/summary_item.rb', line 8

def external_message
  @external_message
end

#messageObject

Returns the value of attribute message


3
4
5
# File 'app/models/ui_helper/summary_item.rb', line 3

def message
  @message
end

#objectObject

Returns the value of attribute object


4
5
6
# File 'app/models/ui_helper/summary_item.rb', line 4

def object
  @object
end

#timestampObject

Returns the value of attribute timestamp


5
6
7
# File 'app/models/ui_helper/summary_item.rb', line 5

def timestamp
  @timestamp
end