Class: SpreeCmCommissioner::EventTicketAggregator

Inherits:
Object
  • Object
show all
Defined in:
app/serializables/spree_cm_commissioner/event_ticket_aggregator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, value:) ⇒ EventTicketAggregator

Returns a new instance of EventTicketAggregator.



5
6
7
8
# File 'app/serializables/spree_cm_commissioner/event_ticket_aggregator.rb', line 5

def initialize(id:, value:)
  @id = id
  @value = value
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'app/serializables/spree_cm_commissioner/event_ticket_aggregator.rb', line 3

def id
  @id
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'app/serializables/spree_cm_commissioner/event_ticket_aggregator.rb', line 3

def value
  @value
end