Class: Responsys::Api::Object::ListMergeRule
- Inherits:
-
Object
- Object
- Responsys::Api::Object::ListMergeRule
- Defined in:
- lib/responsys/api/object/list_merge_rule.rb
Instance Attribute Summary collapse
-
#default_permission_status ⇒ Object
Returns the value of attribute default_permission_status.
-
#html_value ⇒ Object
Returns the value of attribute html_value.
-
#insert_on_no_match ⇒ Object
Returns the value of attribute insert_on_no_match.
-
#match_column_name1 ⇒ Object
Returns the value of attribute match_column_name1.
-
#match_column_name2 ⇒ Object
Returns the value of attribute match_column_name2.
-
#match_column_name3 ⇒ Object
Returns the value of attribute match_column_name3.
-
#match_operator ⇒ Object
Returns the value of attribute match_operator.
-
#optin_value ⇒ Object
Returns the value of attribute optin_value.
-
#optout_value ⇒ Object
Returns the value of attribute optout_value.
-
#reject_record_if_channel_empty ⇒ Object
Returns the value of attribute reject_record_if_channel_empty.
-
#text_value ⇒ Object
Returns the value of attribute text_value.
-
#update_on_match ⇒ Object
Returns the value of attribute update_on_match.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ListMergeRule
constructor
A new instance of ListMergeRule.
- #to_api ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ ListMergeRule
Returns a new instance of ListMergeRule.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 7 def initialize( = {}) @insert_on_no_match = [:insertOnNoMatch].nil? ? false : [:insertOnNoMatch] @update_on_match = [:updateOnMatch] || "REPLACE_ALL" @match_column_name1 = [:matchColumnName1] || "EMAIL_ADDRESS_" @match_column_name2 = [:matchColumnName2] || "" @match_column_name3 = [:matchColumnName3] || "" @match_operator = [:matchOperator] || "AND" @optin_value = [:optinValue] || "I" @optout_value = [:optoutValue] || "O" @html_value = [:htmlValue] || "H" @text_value = [:textValue] || "T" @reject_record_if_channel_empty = [:rejectRecordIfChannelEmpty] || "" @default_permission_status = [:defaultPermissionStatus] || "OPTOUT" end |
Instance Attribute Details
#default_permission_status ⇒ Object
Returns the value of attribute default_permission_status.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def @default_permission_status end |
#html_value ⇒ Object
Returns the value of attribute html_value.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def html_value @html_value end |
#insert_on_no_match ⇒ Object
Returns the value of attribute insert_on_no_match.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def insert_on_no_match @insert_on_no_match end |
#match_column_name1 ⇒ Object
Returns the value of attribute match_column_name1.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def match_column_name1 @match_column_name1 end |
#match_column_name2 ⇒ Object
Returns the value of attribute match_column_name2.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def match_column_name2 @match_column_name2 end |
#match_column_name3 ⇒ Object
Returns the value of attribute match_column_name3.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def match_column_name3 @match_column_name3 end |
#match_operator ⇒ Object
Returns the value of attribute match_operator.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def match_operator @match_operator end |
#optin_value ⇒ Object
Returns the value of attribute optin_value.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def optin_value @optin_value end |
#optout_value ⇒ Object
Returns the value of attribute optout_value.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def optout_value @optout_value end |
#reject_record_if_channel_empty ⇒ Object
Returns the value of attribute reject_record_if_channel_empty.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def reject_record_if_channel_empty @reject_record_if_channel_empty end |
#text_value ⇒ Object
Returns the value of attribute text_value.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def text_value @text_value end |
#update_on_match ⇒ Object
Returns the value of attribute update_on_match.
5 6 7 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 5 def update_on_match @update_on_match end |
Instance Method Details
#to_api ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/responsys/api/object/list_merge_rule.rb', line 22 def to_api { insertOnNoMatch: @insert_on_no_match, updateOnMatch: @update_on_match, matchColumnName1: @match_column_name1, matchColumnName2: @match_column_name2, matchColumnName3: @match_column_name3, matchOperator: @match_operator, optinValue: @optin_value, optoutValue: @optout_value, htmlValue: @html_value, textValue: @text_value, rejectRecordIfChannelEmpty: @reject_record_if_channel_empty, defaultPermissionStatus: @default_permission_status } end |