Class: Catalog::PushCatalogItemPrice::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(all_price_pushed: nil, catalog_item: nil, catalog_items_updated: [], catalog_items_failed: [], messages: []) ⇒ Result

Returns a new instance of Result.



5
# File 'app/services/catalog/push_catalog_item_price.rb', line 5

def initialize(all_price_pushed: nil, catalog_item: nil, catalog_items_updated: [], catalog_items_failed: [], messages: []) = super

Instance Attribute Details

#all_price_pushedObject (readonly)

Returns the value of attribute all_price_pushed

Returns:

  • (Object)

    the current value of all_price_pushed



4
5
6
# File 'app/services/catalog/push_catalog_item_price.rb', line 4

def all_price_pushed
  @all_price_pushed
end

#catalog_itemObject (readonly)

Returns the value of attribute catalog_item

Returns:

  • (Object)

    the current value of catalog_item



4
5
6
# File 'app/services/catalog/push_catalog_item_price.rb', line 4

def catalog_item
  @catalog_item
end

#catalog_items_failedObject (readonly)

Returns the value of attribute catalog_items_failed

Returns:

  • (Object)

    the current value of catalog_items_failed



4
5
6
# File 'app/services/catalog/push_catalog_item_price.rb', line 4

def catalog_items_failed
  @catalog_items_failed
end

#catalog_items_updatedObject (readonly)

Returns the value of attribute catalog_items_updated

Returns:

  • (Object)

    the current value of catalog_items_updated



4
5
6
# File 'app/services/catalog/push_catalog_item_price.rb', line 4

def catalog_items_updated
  @catalog_items_updated
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



4
5
6
# File 'app/services/catalog/push_catalog_item_price.rb', line 4

def messages
  @messages
end

Instance Method Details

#all_price_pushed?Boolean

Returns:

  • (Boolean)


6
# File 'app/services/catalog/push_catalog_item_price.rb', line 6

def all_price_pushed? = all_price_pushed