Sha256: d380750c6ddcdc318926412f6acab94b40707525da03432d9eb028115b365813
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
module Mailstro class ListSubscribe < Resource def self.subscribe(list_name, contact_email) new(list_name, contact_email).deliver end attr_reader :list_name, :contact_email def initialize(list_name, contact_email) @list_name = list_name @contact_email = contact_email end def deliver post("lists/subscribers", :list_name => @list_name, :contact_email => @contact_email) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailstro-0.0.6 | lib/mailstro/list_subscribe.rb |
mailstro-0.0.5 | lib/mailstro/list_subscribe.rb |