-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds support for MergeTriggerEmail API #18
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Responsys | ||
module Api | ||
module Object | ||
class TriggerData | ||
attr_accessor :optional_data | ||
|
||
def initialize(optional_data = [Responsys::Api::Object::OptionalData.new]) | ||
@optional_data = optional_data | ||
end | ||
|
||
def to_api | ||
{ optionalData: @optional_data.map(&:to_api) } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @florrain got on my case about this, so I figured I'd pay it forward :) {
optionalData: @optional_data.map(&:to_api)
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ha - oh @florrain - how he cracks me up. I think the 1 line hash syntax is fine so I wouldn't worry about it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we decided to split the hash in multiple ones if it doesn't fit in a "relatively short" line. This one should be fine 👍 |
||
end | ||
end | ||
end | ||
end | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add
ListMergeRule.new
as the default value formerge_rule