Sha256: 58c703a59bd600a118b1ebefc0b89641ef002549c6fbdb16652a6a3366bb7f05
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 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 alias :'api_key=' :'product_token=' def endpoint @endpoint || ENDPOINT end def path @path || PATH end def defaults @defaults ||= { from: from, to: to } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cm-sms-0.1.2 | lib/cm_sms/configuration.rb |