Class: OpportunityBriefing::OutletPurchaseSnapshot::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/opportunity_briefing/outlet_purchase_snapshot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items: [], count: nil) ⇒ Result

Returns a new instance of Result.



28
# File 'app/services/opportunity_briefing/outlet_purchase_snapshot.rb', line 28

def initialize(items: [], count: nil) = super

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



27
28
29
# File 'app/services/opportunity_briefing/outlet_purchase_snapshot.rb', line 27

def count
  @count
end

#itemsObject (readonly)

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



27
28
29
# File 'app/services/opportunity_briefing/outlet_purchase_snapshot.rb', line 27

def items
  @items
end