Class: Warranty::RegistrantResolver::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/warranty/registrant_resolver.rb

Overview

created distinguishes a brand-new Party (flagged in CRM as originating
from a warranty registration) from a matched existing customer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, customer: nil, created: false, error: nil) ⇒ Object

Initializes.

Parameters:

  • success (Object, nil) (defaults to: nil)

    the success value

  • customer (Object, nil) (defaults to: nil)

    the customer record

  • created (Boolean) (defaults to: false)

    the created value

  • error (Object, nil) (defaults to: nil)

    the error record



38
# File 'app/services/warranty/registrant_resolver.rb', line 38

def initialize(success: nil, customer: nil, created: false, error: nil) = super

Instance Attribute Details

#createdObject (readonly)

Returns the value of attribute created

Returns:

  • (Object)

    the current value of created



30
31
32
# File 'app/services/warranty/registrant_resolver.rb', line 30

def created
  @created
end

#customerObject (readonly)

Returns the value of attribute customer

Returns:

  • (Object)

    the current value of customer



30
31
32
# File 'app/services/warranty/registrant_resolver.rb', line 30

def customer
  @customer
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



30
31
32
# File 'app/services/warranty/registrant_resolver.rb', line 30

def error
  @error
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



30
31
32
# File 'app/services/warranty/registrant_resolver.rb', line 30

def success
  @success
end