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.



6
7
8
9
10
11
12
# File 'app/models/ui_helper/summary_item.rb', line 6

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.



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

def external_link
  @external_link
end

#external_messageObject

Returns the value of attribute external_message.



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

def external_message
  @external_message
end

#messageObject

Returns the value of attribute message.



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

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.



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

def timestamp
  @timestamp
end