Class: OpportunityBriefing::QuoteSnapshot::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(selected_quote: nil, quotes: [], focused_quote_line_items: [], focused_quote_revision_changes: [], counts: {}) ⇒ Result

Returns a new instance of Result.



22
# File 'app/services/opportunity_briefing/quote_snapshot.rb', line 22

def initialize(selected_quote: nil, quotes: [], focused_quote_line_items: [], focused_quote_revision_changes: [], counts: {}) = super

Instance Attribute Details

#countsObject (readonly)

Returns the value of attribute counts

Returns:

  • (Object)

    the current value of counts



15
16
17
# File 'app/services/opportunity_briefing/quote_snapshot.rb', line 15

def counts
  @counts
end

#focused_quote_line_itemsObject (readonly)

Returns the value of attribute focused_quote_line_items

Returns:

  • (Object)

    the current value of focused_quote_line_items



15
16
17
# File 'app/services/opportunity_briefing/quote_snapshot.rb', line 15

def focused_quote_line_items
  @focused_quote_line_items
end

#focused_quote_revision_changesObject (readonly)

Returns the value of attribute focused_quote_revision_changes

Returns:

  • (Object)

    the current value of focused_quote_revision_changes



15
16
17
# File 'app/services/opportunity_briefing/quote_snapshot.rb', line 15

def focused_quote_revision_changes
  @focused_quote_revision_changes
end

#quotesObject (readonly)

Returns the value of attribute quotes

Returns:

  • (Object)

    the current value of quotes



15
16
17
# File 'app/services/opportunity_briefing/quote_snapshot.rb', line 15

def quotes
  @quotes
end

#selected_quoteObject (readonly)

Returns the value of attribute selected_quote

Returns:

  • (Object)

    the current value of selected_quote



15
16
17
# File 'app/services/opportunity_briefing/quote_snapshot.rb', line 15

def selected_quote
  @selected_quote
end