Class: SpreeCmCommissioner::SessionProductMonitorMetric
- Inherits:
-
Object
- Object
- SpreeCmCommissioner::SessionProductMonitorMetric
- Defined in:
- lib/spree_cm_commissioner/session_product_monitor_metric.rb
Instance Attribute Summary collapse
-
#checked_in ⇒ Object
readonly
Returns the value of attribute checked_in.
-
#product_name ⇒ Object
readonly
Returns the value of attribute product_name.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
-
#variant ⇒ Object
readonly
Returns the value of attribute variant.
Instance Method Summary collapse
-
#initialize(total:, checked_in:, product_name:, variant:) ⇒ SessionProductMonitorMetric
constructor
A new instance of SessionProductMonitorMetric.
- #no_show ⇒ Object
Constructor Details
#initialize(total:, checked_in:, product_name:, variant:) ⇒ SessionProductMonitorMetric
Returns a new instance of SessionProductMonitorMetric.
5 6 7 8 9 10 |
# File 'lib/spree_cm_commissioner/session_product_monitor_metric.rb', line 5 def initialize(total:, checked_in:, product_name:, variant:) @product_name = product_name @variant = variant @total = total @checked_in = checked_in end |
Instance Attribute Details
#checked_in ⇒ Object (readonly)
Returns the value of attribute checked_in.
3 4 5 |
# File 'lib/spree_cm_commissioner/session_product_monitor_metric.rb', line 3 def checked_in @checked_in end |
#product_name ⇒ Object (readonly)
Returns the value of attribute product_name.
3 4 5 |
# File 'lib/spree_cm_commissioner/session_product_monitor_metric.rb', line 3 def product_name @product_name end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
3 4 5 |
# File 'lib/spree_cm_commissioner/session_product_monitor_metric.rb', line 3 def total @total end |
#variant ⇒ Object (readonly)
Returns the value of attribute variant.
3 4 5 |
# File 'lib/spree_cm_commissioner/session_product_monitor_metric.rb', line 3 def variant @variant end |
Instance Method Details
#no_show ⇒ Object
12 13 14 |
# File 'lib/spree_cm_commissioner/session_product_monitor_metric.rb', line 12 def no_show total - checked_in end |