Sha256: 8f222becb671d5a265704f279ce918bba1bcbc3366ae52caf06dc0de61651d2b

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

module TalonOne
  module Integration
    class Effect
      def initialize(raw_array)
        @campaign_id = raw_array[0]
        @ruleset_id = raw_array[1]
        @ruleset_index = raw_array[2]
        @raw = raw_array[3]
      end

      def campaign_id
        @campaign_id
      end

      def function
        @raw[0]
      end

      def args
        @raw[1..-1]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
talon_one-0.1.3 lib/integration/effect.rb
talon_one-0.1.2 lib/integration/effect.rb
talon_one-0.1.1 lib/integration/effect.rb