This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
"command": "bash", | |
"isShellCommand": true, | |
"showOutput": "always", | |
"args": [ | |
"-c" | |
], | |
"tasks": [{ | |
"taskName": "swagger", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Campaign | |
def initialize(condition, *qualifiers) | |
@condition = (condition.to_s + '?').to_sym | |
@qualifiers = PostCartAmountQualifier ? [] : [] rescue qualifiers.compact | |
@line_item_selector = qualifiers.last unless @line_item_selector | |
qualifiers.compact.each do |qualifier| | |
is_multi_select = qualifier.instance_variable_get(:@conditions).is_a?(Array) | |
if is_multi_select | |
qualifier.instance_variable_get(:@conditions).each do |nested_q| | |
@post_amount_qualifier = nested_q if nested_q.is_a?(PostCartAmountQualifier) |
OlderNewer