Sha256: 560c3ff6ea372bef2aa22e3af63becdc0b392d44391c9a57dc6b5bcb3b52baa4
Contents?: true
Size: 626 Bytes
Versions: 2
Compression:
Stored size: 626 Bytes
Contents
module CmSms class Configuration class ProductTokenMissing < ArgumentError; end class EndpointMissing < ArgumentError; end class PathMissing < ArgumentError; end ENDPOINT = 'https://sgw01.cm.nl' PATH = '/gateway.ashx' DCS = 8 attr_accessor :from, :to, :product_token, :endpoint, :path, :dcs alias :'api_key=' :'product_token=' def endpoint @endpoint || ENDPOINT end def path @path || PATH end def dcs @dcs || DCS end def defaults @defaults ||= { from: from, to: to, dcs: dcs } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cm-sms-0.2.0 | lib/cm_sms/configuration.rb |
cm-sms-0.1.4 | lib/cm_sms/configuration.rb |