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.
48 |
# File 'app/services/feed/openai_ads/catalog_feed_generator.rb', line 48 def initialize(csv: nil, output_file_path: nil, product_count: 0) = super |
Instance Attribute Details
#csv ⇒ Object (readonly)
the generated CSV document
47 48 49 |
# File 'app/services/feed/openai_ads/catalog_feed_generator.rb', line 47 Result = Data.define(:csv, :output_file_path, :product_count) do def initialize(csv: nil, output_file_path: nil, product_count: 0) = super end |
#output_file_path ⇒ Object (readonly)
where it was written, if any
47 48 49 |
# File 'app/services/feed/openai_ads/catalog_feed_generator.rb', line 47 Result = Data.define(:csv, :output_file_path, :product_count) do def initialize(csv: nil, output_file_path: nil, product_count: 0) = super end |
#product_count ⇒ Object (readonly)
rows written (excludes the header)
47 48 49 |
# File 'app/services/feed/openai_ads/catalog_feed_generator.rb', line 47 Result = Data.define(:csv, :output_file_path, :product_count) do def initialize(csv: nil, output_file_path: nil, product_count: 0) = super end |