Class: Catalog::AmazonPriceLoweringService::Result
- Inherits:
-
Data
- Object
- Data
- Catalog::AmazonPriceLoweringService::Result
- Defined in:
- app/services/catalog/amazon_price_lowering_service.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#competitive_price ⇒ Object
readonly
Returns the value of attribute competitive_price.
-
#competitor_seller_id ⇒ Object
readonly
Returns the value of attribute competitor_seller_id.
-
#new_price ⇒ Object
readonly
Returns the value of attribute new_price.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(action: nil, reason: nil, new_price: nil, competitive_price: nil, competitor_seller_id: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(action: nil, reason: nil, new_price: nil, competitive_price: nil, competitor_seller_id: nil) ⇒ Result
Returns a new instance of Result.
15 |
# File 'app/services/catalog/amazon_price_lowering_service.rb', line 15 def initialize(action: nil, reason: nil, new_price: nil, competitive_price: nil, competitor_seller_id: nil) = super |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action
14 15 16 |
# File 'app/services/catalog/amazon_price_lowering_service.rb', line 14 def action @action end |
#competitive_price ⇒ Object (readonly)
Returns the value of attribute competitive_price
14 15 16 |
# File 'app/services/catalog/amazon_price_lowering_service.rb', line 14 def competitive_price @competitive_price end |
#competitor_seller_id ⇒ Object (readonly)
Returns the value of attribute competitor_seller_id
14 15 16 |
# File 'app/services/catalog/amazon_price_lowering_service.rb', line 14 def competitor_seller_id @competitor_seller_id end |
#new_price ⇒ Object (readonly)
Returns the value of attribute new_price
14 15 16 |
# File 'app/services/catalog/amazon_price_lowering_service.rb', line 14 def new_price @new_price end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
14 15 16 |
# File 'app/services/catalog/amazon_price_lowering_service.rb', line 14 def reason @reason end |