Sha256: ff687d506076cecea85071ceabd2d9dbf4f15966c5315face28b1b7ebd28049a
Contents?: true
Size: 595 Bytes
Versions: 5
Compression:
Stored size: 595 Bytes
Contents
module AutoRespondersFactory def valid_auto_responder_params(params = {}) { status_id: 1, subject: 'Here\'s a good subject line', from_name: 'Our Company', body_html: 'some html here', body_text: 'some text here' }.merge(params) end def create_auto_responder(params = {}) offer_id = if params.has_key?(:offer_id) params.delete(:offer_id) else create_offer['id'] end _params = valid_auto_responder_params(params) api_client.create_auto_responder(offer_id, _params) end def delete_all_auto_responders end end
Version data entries
5 entries across 5 versions & 1 rubygems