Class: OpportunityBriefing::QuoteCollectionSnapshot::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Result.



14
# File 'app/services/opportunity_briefing/quote_collection_snapshot.rb', line 14

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

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



13
14
15
# File 'app/services/opportunity_briefing/quote_collection_snapshot.rb', line 13

def count
  @count
end

#itemsObject (readonly)

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



13
14
15
# File 'app/services/opportunity_briefing/quote_collection_snapshot.rb', line 13

def items
  @items
end

#selected_quoteObject (readonly)

Returns the value of attribute selected_quote

Returns:

  • (Object)

    the current value of selected_quote



13
14
15
# File 'app/services/opportunity_briefing/quote_collection_snapshot.rb', line 13

def selected_quote
  @selected_quote
end