Class: SpreeCmCommissioner::Seats::BlockDateIteration::SKIP

Inherits:
Struct
  • Object
show all
Defined in:
app/services/spree_cm_commissioner/seats/block_date_iteration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#block_labelObject

Returns the value of attribute block_label

Returns:

  • (Object)

    the current value of block_label



8
9
10
# File 'app/services/spree_cm_commissioner/seats/block_date_iteration.rb', line 8

def block_label
  @block_label
end

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



8
9
10
# File 'app/services/spree_cm_commissioner/seats/block_date_iteration.rb', line 8

def date
  @date
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



8
9
10
# File 'app/services/spree_cm_commissioner/seats/block_date_iteration.rb', line 8

def reason
  @reason
end

Instance Method Details

#to_hObject



9
# File 'app/services/spree_cm_commissioner/seats/block_date_iteration.rb', line 9

def to_h = { date: date, block_label: block_label, reason: reason }