Class: ElasticEmail::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_email/client.rb

Instance Method Summary collapse

Instance Method Details

#elastic_email_send_urlObject



14
15
16
# File 'lib/elastic_email/client.rb', line 14

def elastic_email_send_url
  'http://api.elasticemail.com/mailer/send'
end

#elastic_email_uriObject



10
11
12
# File 'lib/elastic_email/client.rb', line 10

def elastic_email_uri
  URI.parse(elastic_email_send_url)
end

#send_message(options) ⇒ Object



6
7
8
# File 'lib/elastic_email/client.rb', line 6

def send_message(options)
  Net::HTTP.post_form(elastic_email_uri, options)
end