Class: Feed::OpenaiAds::CatalogFeedGenerator::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/feed/openai_ads/catalog_feed_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(csv: nil, output_file_path: nil, product_count: 0) ⇒ Result

Returns a new instance of Result.

Parameters:

  • csv (String, nil) (defaults to: nil)

    the generated CSV document

  • output_file_path (String, nil) (defaults to: nil)

    where it was written, if any

  • product_count (Integer) (defaults to: 0)

    rows written (excludes the header)



60
# File 'app/services/feed/openai_ads/catalog_feed_generator.rb', line 60

def initialize(csv: nil, output_file_path: nil, product_count: 0) = super

Instance Attribute Details

#csvObject (readonly)

the generated CSV document



56
57
58
59
60
61
# File 'app/services/feed/openai_ads/catalog_feed_generator.rb', line 56

Result = Data.define(:csv, :output_file_path, :product_count) do
  # @param csv [String, nil] the generated CSV document
  # @param output_file_path [String, nil] where it was written, if any
  # @param product_count [Integer] rows written (excludes the header)
  def initialize(csv: nil, output_file_path: nil, product_count: 0) = super
end

#output_file_pathObject (readonly)

where it was written, if any



56
57
58
59
60
61
# File 'app/services/feed/openai_ads/catalog_feed_generator.rb', line 56

Result = Data.define(:csv, :output_file_path, :product_count) do
  # @param csv [String, nil] the generated CSV document
  # @param output_file_path [String, nil] where it was written, if any
  # @param product_count [Integer] rows written (excludes the header)
  def initialize(csv: nil, output_file_path: nil, product_count: 0) = super
end

#product_countObject (readonly)

rows written (excludes the header)



56
57
58
59
60
61
# File 'app/services/feed/openai_ads/catalog_feed_generator.rb', line 56

Result = Data.define(:csv, :output_file_path, :product_count) do
  # @param csv [String, nil] the generated CSV document
  # @param output_file_path [String, nil] where it was written, if any
  # @param product_count [Integer] rows written (excludes the header)
  def initialize(csv: nil, output_file_path: nil, product_count: 0) = super
end