Class: FreightEventStatusSummary::Badge

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



26
27
28
# File 'app/services/freight_event_status_summary.rb', line 26

def color
  @color
end

#event_timeObject (readonly)

Returns the value of attribute event_time

Returns:

  • (Object)

    the current value of event_time



26
27
28
# File 'app/services/freight_event_status_summary.rb', line 26

def event_time
  @event_time
end

#iconObject (readonly)

Returns the value of attribute icon

Returns:

  • (Object)

    the current value of icon



26
27
28
# File 'app/services/freight_event_status_summary.rb', line 26

def icon
  @icon
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



26
27
28
# File 'app/services/freight_event_status_summary.rb', line 26

def kind
  @kind
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



26
27
28
# File 'app/services/freight_event_status_summary.rb', line 26

def state
  @state
end

#tooltipObject (readonly)

Returns the value of attribute tooltip

Returns:

  • (Object)

    the current value of tooltip



26
27
28
# File 'app/services/freight_event_status_summary.rb', line 26

def tooltip
  @tooltip
end