Class: OpportunityBriefing::QuoteSnapshot::Result
- Inherits:
-
Data
- Object
- Data
- OpportunityBriefing::QuoteSnapshot::Result
- Defined in:
- app/services/opportunity_briefing/quote_snapshot.rb
Instance Attribute Summary collapse
-
#counts ⇒ Object
readonly
Returns the value of attribute counts.
-
#focused_quote_line_items ⇒ Object
readonly
Returns the value of attribute focused_quote_line_items.
-
#focused_quote_revision_changes ⇒ Object
readonly
Returns the value of attribute focused_quote_revision_changes.
-
#quotes ⇒ Object
readonly
Returns the value of attribute quotes.
-
#selected_quote ⇒ Object
readonly
Returns the value of attribute selected_quote.
Instance Method Summary collapse
-
#initialize(selected_quote: nil, quotes: [], focused_quote_line_items: [], focused_quote_revision_changes: [], counts: {}) ⇒ Result
constructor
A new instance of Result.
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
#counts ⇒ Object (readonly)
Returns the value of attribute counts
15 16 17 |
# File 'app/services/opportunity_briefing/quote_snapshot.rb', line 15 def counts @counts end |
#focused_quote_line_items ⇒ Object (readonly)
Returns the value of attribute 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_changes ⇒ Object (readonly)
Returns the value of attribute 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 |
#quotes ⇒ Object (readonly)
Returns the value of attribute quotes
15 16 17 |
# File 'app/services/opportunity_briefing/quote_snapshot.rb', line 15 def quotes @quotes end |
#selected_quote ⇒ Object (readonly)
Returns the value of attribute selected_quote
15 16 17 |
# File 'app/services/opportunity_briefing/quote_snapshot.rb', line 15 def selected_quote @selected_quote end |