Class: TalonOne::Integration::Effect
- Inherits:
-
Object
- Object
- TalonOne::Integration::Effect
- Defined in:
- lib/integration/effect.rb
Instance Method Summary collapse
- #args ⇒ Object
- #function ⇒ Object
-
#initialize(raw_array) ⇒ Effect
constructor
A new instance of Effect.
Constructor Details
#initialize(raw_array) ⇒ Effect
Returns a new instance of Effect.
4 5 6 7 8 9 |
# File 'lib/integration/effect.rb', line 4 def initialize(raw_array) @campaign_id = raw_array[0] @ruleset_id = raw_array[1] @ruleset_index = raw_array[2] @raw = raw_array[3] end |
Instance Method Details
#args ⇒ Object
15 16 17 |
# File 'lib/integration/effect.rb', line 15 def args @raw[1..-1] end |
#function ⇒ Object
11 12 13 |
# File 'lib/integration/effect.rb', line 11 def function @raw[0] end |