Class: UiHelper::SummaryItem

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

Overview

rubocop:todo Style/Documentation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ SummaryItem

Returns a new instance of SummaryItem.


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

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


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

def external_link
  @external_link
end

#external_messageObject

Returns the value of attribute external_message


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

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


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

def object
  @object
end

#timestampObject

Returns the value of attribute timestamp


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

def timestamp
  @timestamp
end