Class: Catalog::AmazonPriceRaisingService::Result

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



16
17
18
# File 'app/services/catalog/amazon_price_raising_service.rb', line 16

def action
  @action
end

#blocking_retailer_nameObject (readonly)

Returns the value of attribute blocking_retailer_name

Returns:

  • (Object)

    the current value of 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_priceObject (readonly)

Returns the value of attribute new_price

Returns:

  • (Object)

    the current value of new_price



16
17
18
# File 'app/services/catalog/amazon_price_raising_service.rb', line 16

def new_price
  @new_price
end

#price_ceilingObject (readonly)

Returns the value of attribute price_ceiling

Returns:

  • (Object)

    the current value of price_ceiling



16
17
18
# File 'app/services/catalog/amazon_price_raising_service.rb', line 16

def price_ceiling
  @price_ceiling
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



16
17
18
# File 'app/services/catalog/amazon_price_raising_service.rb', line 16

def reason
  @reason
end

#sibling_refresh_resultObject (readonly)

Returns the value of attribute sibling_refresh_result

Returns:

  • (Object)

    the current value of 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