Class: Feed::Google::ReviewGenerator
- Inherits:
-
BaseService
- Object
- BaseService
- Feed::Google::ReviewGenerator
- Defined in:
- app/services/feed/google/review_generator.rb
Defined Under Namespace
Classes: Result
Instance Method Summary collapse
Instance Method Details
#process(limit: nil, output_file_path: nil, locale: :'en-US') ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/services/feed/google/review_generator.rb', line 8 def process(limit: nil, output_file_path: nil, locale: :'en-US') xml_data = build_empty_xml if output_file_path File.open(output_file_path, 'wb') do |file| file.write xml_data file.flush file.fsync end end Result.new(output: xml_data, output_file_path:, product_reviews_count: 0) end |