Class: Catalog::AmazonPriceRaisingService::Result
- Inherits:
-
Data
- Object
- Data
- Catalog::AmazonPriceRaisingService::Result
- Defined in:
- app/services/catalog/amazon_price_raising_service.rb
Overview
Service object: result. +blocking_retailer_name+ names the retailer whose
price set +price_ceiling+ when the raise was blocked externally (nil for
non-blocked outcomes and for the parent-price ceiling).
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#blocking_retailer_name ⇒ Object
readonly
Returns the value of attribute blocking_retailer_name.
-
#new_price ⇒ Object
readonly
Returns the value of attribute new_price.
-
#price_ceiling ⇒ Object
readonly
Returns the value of attribute price_ceiling.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#sibling_refresh_result ⇒ Object
readonly
Returns the value of attribute sibling_refresh_result.
Instance Method Summary collapse
-
#initialize(action:, reason:, new_price:, price_ceiling:, sibling_refresh_result: nil, blocking_retailer_name: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(action:, reason:, new_price:, price_ceiling:, sibling_refresh_result: nil, blocking_retailer_name: nil) ⇒ Result
Returns a new instance of Result.
17 18 19 |
# File 'app/services/catalog/amazon_price_raising_service.rb', line 17 def initialize(action:, reason:, new_price:, price_ceiling:, sibling_refresh_result: nil, blocking_retailer_name: nil) super end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action
16 17 18 |
# File 'app/services/catalog/amazon_price_raising_service.rb', line 16 def action @action end |
#blocking_retailer_name ⇒ Object (readonly)
Returns the value of attribute blocking_retailer_name
16 17 18 |
# File 'app/services/catalog/amazon_price_raising_service.rb', line 16 def blocking_retailer_name @blocking_retailer_name end |
#new_price ⇒ Object (readonly)
Returns the value of attribute new_price
16 17 18 |
# File 'app/services/catalog/amazon_price_raising_service.rb', line 16 def new_price @new_price end |
#price_ceiling ⇒ Object (readonly)
Returns the value of attribute price_ceiling
16 17 18 |
# File 'app/services/catalog/amazon_price_raising_service.rb', line 16 def price_ceiling @price_ceiling end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
16 17 18 |
# File 'app/services/catalog/amazon_price_raising_service.rb', line 16 def reason @reason end |
#sibling_refresh_result ⇒ Object (readonly)
Returns the value of attribute sibling_refresh_result
16 17 18 |
# File 'app/services/catalog/amazon_price_raising_service.rb', line 16 def sibling_refresh_result @sibling_refresh_result end |