Class: Catalog::AmazonPriceLoweringService::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/catalog/amazon_price_lowering_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



14
15
16
# File 'app/services/catalog/amazon_price_lowering_service.rb', line 14

def action
  @action
end

#competitive_priceObject (readonly)

Returns the value of attribute competitive_price

Returns:

  • (Object)

    the current value of competitive_price



14
15
16
# File 'app/services/catalog/amazon_price_lowering_service.rb', line 14

def competitive_price
  @competitive_price
end

#competitor_seller_idObject (readonly)

Returns the value of attribute competitor_seller_id

Returns:

  • (Object)

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

Returns the value of attribute new_price

Returns:

  • (Object)

    the current value of new_price



14
15
16
# File 'app/services/catalog/amazon_price_lowering_service.rb', line 14

def new_price
  @new_price
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



14
15
16
# File 'app/services/catalog/amazon_price_lowering_service.rb', line 14

def reason
  @reason
end