Class: Catalog::AmazonPricingAutomationService::Result

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

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(processed_count:, price_increased_count:, price_lowered_count:, flagged_count:, blocked_by_external: [], messages: []) ⇒ Result

Returns a new instance of Result.



19
20
21
# File 'app/services/catalog/amazon_pricing_automation_service.rb', line 19

def initialize(processed_count:, price_increased_count:, price_lowered_count:, flagged_count:, blocked_by_external: [], messages: [])
  super
end

Instance Attribute Details

#blocked_by_externalObject (readonly)

Returns the value of attribute blocked_by_external

Returns:

  • (Object)

    the current value of blocked_by_external



18
19
20
# File 'app/services/catalog/amazon_pricing_automation_service.rb', line 18

def blocked_by_external
  @blocked_by_external
end

#flagged_countObject (readonly)

Returns the value of attribute flagged_count

Returns:

  • (Object)

    the current value of flagged_count



18
19
20
# File 'app/services/catalog/amazon_pricing_automation_service.rb', line 18

def flagged_count
  @flagged_count
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



18
19
20
# File 'app/services/catalog/amazon_pricing_automation_service.rb', line 18

def messages
  @messages
end

#price_increased_countObject (readonly)

Returns the value of attribute price_increased_count

Returns:

  • (Object)

    the current value of price_increased_count



18
19
20
# File 'app/services/catalog/amazon_pricing_automation_service.rb', line 18

def price_increased_count
  @price_increased_count
end

#price_lowered_countObject (readonly)

Returns the value of attribute price_lowered_count

Returns:

  • (Object)

    the current value of price_lowered_count



18
19
20
# File 'app/services/catalog/amazon_pricing_automation_service.rb', line 18

def price_lowered_count
  @price_lowered_count
end

#processed_countObject (readonly)

Returns the value of attribute processed_count

Returns:

  • (Object)

    the current value of processed_count



18
19
20
# File 'app/services/catalog/amazon_pricing_automation_service.rb', line 18

def processed_count
  @processed_count
end