Class: HttpMailer::MandrillServiceApi

Inherits:
Object
  • Object
show all
Defined in:
lib/http_mailer/mandrill/mandrill_service_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, protocol = 'https', version = '1.0') ⇒ MandrillServiceApi

Returns a new instance of MandrillServiceApi.



5
6
7
8
9
# 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

Instance Attribute Details

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/http_mailer/mandrill/mandrill_service_api.rb', line 3

def host
  @host
end

#protocolObject

Returns the value of attribute protocol.



3
4
5
# File 'lib/http_mailer/mandrill/mandrill_service_api.rb', line 3

def protocol
  @protocol
end

#versionObject

Returns the value of attribute version.



3
4
5
# File 'lib/http_mailer/mandrill/mandrill_service_api.rb', line 3

def version
  @version
end

Instance Method Details

#send_messages_urlObject



11
12
13
# File 'lib/http_mailer/mandrill/mandrill_service_api.rb', line 11

def send_messages_url
  "#{api_root_url}/messages/send.json"
end