Class: Feed::OpenaiAds::CatalogFeedGenerator::Result
- Inherits:
-
Data
- Object
- Data
- Feed::OpenaiAds::CatalogFeedGenerator::Result
- Defined in:
- app/services/feed/openai_ads/catalog_feed_generator.rb
Instance Attribute Summary collapse
-
#csv ⇒ Object
readonly
the generated CSV document.
-
#output_file_path ⇒ Object
readonly
where it was written, if any.
-
#product_count ⇒ Object
readonly
rows written (excludes the header).
Instance Method Summary collapse
-
#initialize(csv: nil, output_file_path: nil, product_count: 0) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(csv: nil, output_file_path: nil, product_count: 0) ⇒ Result
Returns a new instance of Result.
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
#csv ⇒ Object (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_path ⇒ Object (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_count ⇒ Object (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 |