Class: Phone::CallRecordMatcher::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/phone/call_record_matcher.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(records_processed: nil, records_matched: nil, records_failed: nil, messages: []) ⇒ Result

Returns a new instance of Result.



6
# File 'app/services/phone/call_record_matcher.rb', line 6

def initialize(records_processed: nil, records_matched: nil, records_failed: nil, messages: []) = super

Instance Attribute Details

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



5
6
7
# File 'app/services/phone/call_record_matcher.rb', line 5

def messages
  @messages
end

#records_failedObject (readonly)

Returns the value of attribute records_failed

Returns:

  • (Object)

    the current value of records_failed



5
6
7
# File 'app/services/phone/call_record_matcher.rb', line 5

def records_failed
  @records_failed
end

#records_matchedObject (readonly)

Returns the value of attribute records_matched

Returns:

  • (Object)

    the current value of records_matched



5
6
7
# File 'app/services/phone/call_record_matcher.rb', line 5

def records_matched
  @records_matched
end

#records_processedObject (readonly)

Returns the value of attribute records_processed

Returns:

  • (Object)

    the current value of records_processed



5
6
7
# File 'app/services/phone/call_record_matcher.rb', line 5

def records_processed
  @records_processed
end