Class: HttpMailer::MandrillServiceApi
- Inherits:
-
Object
- Object
- HttpMailer::MandrillServiceApi
- Defined in:
- lib/http_mailer/mandrill/mandrill_service_api.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(host, protocol = 'https', version = '1.0') ⇒ MandrillServiceApi
constructor
A new instance of MandrillServiceApi.
- #send_messages_url ⇒ Object
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
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/http_mailer/mandrill/mandrill_service_api.rb', line 3 def host @host end |
#protocol ⇒ Object
Returns the value of attribute protocol.
3 4 5 |
# File 'lib/http_mailer/mandrill/mandrill_service_api.rb', line 3 def protocol @protocol end |
#version ⇒ Object
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_url ⇒ Object
11 12 13 |
# File 'lib/http_mailer/mandrill/mandrill_service_api.rb', line 11 def "#{api_root_url}/messages/send.json" end |