Class: Opportunity::Merger::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/opportunity/merger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(merged: nil, survivor_opp: nil, messages: []) ⇒ Result

Returns a new instance of Result.



4
# File 'app/services/opportunity/merger.rb', line 4

def initialize(merged: nil, survivor_opp: nil, messages: []) = super

Instance Attribute Details

#mergedObject (readonly)

Returns the value of attribute merged

Returns:

  • (Object)

    the current value of merged



3
4
5
# File 'app/services/opportunity/merger.rb', line 3

def merged
  @merged
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



3
4
5
# File 'app/services/opportunity/merger.rb', line 3

def messages
  @messages
end

#survivor_oppObject (readonly)

Returns the value of attribute survivor_opp

Returns:

  • (Object)

    the current value of survivor_opp



3
4
5
# File 'app/services/opportunity/merger.rb', line 3

def survivor_opp
  @survivor_opp
end

Instance Method Details

#merged?Boolean

Returns:

  • (Boolean)


5
# File 'app/services/opportunity/merger.rb', line 5

def merged? = merged