Class: Warranty::OrderLookup::Result
- Inherits:
-
Data
- Object
- Data
- Warranty::OrderLookup::Result
- Defined in:
- app/services/warranty/order_lookup.rb
Overview
Lookup outcome. verified is true only when a supplied email/ZIP
matched the order; error is a customer-facing message.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
-
#verified ⇒ Object
readonly
Returns the value of attribute verified.
Instance Method Summary collapse
-
#initialize(success: nil, order: nil, verified: false, error: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(success: nil, order: nil, verified: false, error: nil) ⇒ Result
Returns a new instance of Result.
31 |
# File 'app/services/warranty/order_lookup.rb', line 31 def initialize(success: nil, order: nil, verified: false, error: nil) = super |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
26 27 28 |
# File 'app/services/warranty/order_lookup.rb', line 26 def error @error end |
#order ⇒ Object (readonly)
Returns the value of attribute order
26 27 28 |
# File 'app/services/warranty/order_lookup.rb', line 26 def order @order end |
#success ⇒ Object (readonly)
Returns the value of attribute success
26 27 28 |
# File 'app/services/warranty/order_lookup.rb', line 26 def success @success end |
#verified ⇒ Object (readonly)
Returns the value of attribute verified
26 27 28 |
# File 'app/services/warranty/order_lookup.rb', line 26 def verified @verified end |