Class: FreightEventStatusSummary::Badge
- Inherits:
-
Data
- Object
- Data
- FreightEventStatusSummary::Badge
- Defined in:
- app/services/freight_event_status_summary.rb
Overview
Value object describing one rendered status icon. kind drives the icon
name, color drives the Bootstrap utility class, and tooltip is the
exact string shown on hover.
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#event_time ⇒ Object
readonly
Returns the value of attribute event_time.
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#tooltip ⇒ Object
readonly
Returns the value of attribute tooltip.
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color
26 27 28 |
# File 'app/services/freight_event_status_summary.rb', line 26 def color @color end |
#event_time ⇒ Object (readonly)
Returns the value of attribute event_time
26 27 28 |
# File 'app/services/freight_event_status_summary.rb', line 26 def event_time @event_time end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon
26 27 28 |
# File 'app/services/freight_event_status_summary.rb', line 26 def icon @icon end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
26 27 28 |
# File 'app/services/freight_event_status_summary.rb', line 26 def kind @kind end |
#state ⇒ Object (readonly)
Returns the value of attribute state
26 27 28 |
# File 'app/services/freight_event_status_summary.rb', line 26 def state @state end |
#tooltip ⇒ Object (readonly)
Returns the value of attribute tooltip
26 27 28 |
# File 'app/services/freight_event_status_summary.rb', line 26 def tooltip @tooltip end |