Sha256: 8f849c17830139cb4714524cd4bdc575b094aa7a3ad5c7e6940f139a405c5562
Contents?: true
Size: 938 Bytes
Versions: 7
Compression:
Stored size: 938 Bytes
Contents
module PortaText module Command module Api # The campaigns endpoint. # https://github.com/PortaText/docs/wiki/REST-API#api_campaigns # # Author:: Marcelo Gornstein (mailto:marcelog@portatext.com) # Copyright:: Copyright (c) 2015 PortaText # License:: Apache-2.0 class Campaigns < Base def id(id) set :id, id end def name(name) set :name, name end def description(description) set :description, description end def from(from) set :from, from end def to_contact_lists(contact_lists) set :contact_list_ids, contact_lists end def endpoint(_method) return 'campaigns' if @args[:id].nil? id = @args[:id] @args.delete :type @args.delete :id "campaigns/#{id}" end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems