Sha256: 69da9cad5dd1d5146130fce32c858a427a40f77089c4c232ed69d42453853c51
Contents?: true
Size: 796 Bytes
Versions: 10
Compression:
Stored size: 796 Bytes
Contents
module CreateSend module Transactional class SmartEmail < CreateSend attr_reader :smart_email_id def self.list(auth, options = nil) cs = CreateSend.new auth response = cs.get "/transactional/smartemail", :query => options response.map{|item| Hashie::Mash.new(item)} end def initialize(auth, smart_email_id) @auth = auth @smart_email_id = smart_email_id super end def details response = get "/transactional/smartemail/#{@smart_email_id}" Hashie::Mash.new(response) end def send(options) response = post "/transactional/smartemail/#{@smart_email_id}/send", { :body => options.to_json } response.map{|item| Hashie::Mash.new(item)} end end end end
Version data entries
10 entries across 10 versions & 2 rubygems