Sha256: 08f18e9a45a14e3988890a9fb4f1e2a0a6a62d236ae18f5ccb50c6291ccf97b8
Contents?: true
Size: 473 Bytes
Versions: 4
Compression:
Stored size: 473 Bytes
Contents
module HttpMailer class MailgunServiceApi attr_accessor :host, :api_key, :version, :subdomain, :protocol def initialize(host, api_key, subdomain, protocol='https', version='v2') @host = host @api_key = api_key @subdomain = subdomain @protocol = protocol @version = version end def send_messages_url "#{self.protocol}://api:key-#{self.api_key}@#{self.host}/#{self.version}/#{self.subdomain}/messages" end end end
Version data entries
4 entries across 4 versions & 1 rubygems