Sha256: 68bae7232b9308e96030d53d8793b2173f75045b74d04667cf8c6415b2b42f69

Contents?: true

Size: 894 Bytes

Versions: 26

Compression:

Stored size: 894 Bytes

Contents

$lib = File.expand_path('../lib', File.dirname(__FILE__))

require "Models/Review"
require "Models/Processor"
require "Helper"
require "ZLogger"

# Add to config.yml:
#
# processors:
#   - ProcessorTemplate:
#       class: "ProcessorTemplate"
#       parameter1: "value"
#       parameter2: "value"
#       parameter3: "value"
#       ...
#

class ProcessorTemplate < Processor

    def initialize(config, configFilePath, baseExecutePath)
        # init Processor
        # get paraemter from config e.g. config["parameter1"]
        # configFilePath: file path of config file (apple.yml/android.yml)
        # baseExecutePath: user excute path
    end

    def processReviews(reviews, platform)
        if reviews.length < 1
            return reviews
        end

        ## do what your want to do with reviews...
        
        ## return result reviews
        return reviews
    end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ZReviewTender-1.3.8 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.3.7 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.3.6 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.3.5 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.3.4 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.3.3 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.3.2 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.3.1 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.3.0 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.2.8 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.2.7 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.2.6 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.2.5 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.2.4 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.2.3 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.2.2 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.2.1 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.2.0 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.1.1 lib/Processors/ProcessorTemplate.rb
ZReviewTender-1.1.0 lib/Processors/ProcessorTemplate.rb