class HttpMailer::MandrillServiceApi
Attributes
host[RW]
protocol[RW]
version[RW]
Public Class Methods
new(host, protocol='https', version='1.0')
click to toggle source
# File lib/http_mailer/mandrill/mandrill_service_api.rb, line 5 def initialize(host, protocol='https', version='1.0') @host = host @protocol = protocol @version = version end
Public Instance Methods
send_messages_url()
click to toggle source
# File lib/http_mailer/mandrill/mandrill_service_api.rb, line 11 def send_messages_url "#{api_root_url}/messages/send.json" end
Private Instance Methods
api_root_url()
click to toggle source
# File lib/http_mailer/mandrill/mandrill_service_api.rb, line 16 def api_root_url "#{self.protocol}://#{self.host}/api/#{self.version}" end