lib/smsified/subscriptions.rb in smsified-0.1.3 vs lib/smsified/subscriptions.rb in smsified-0.1.4

- old
+ new

@@ -16,9 +16,10 @@ # @option params [optional, String] :sender_address to use with subscriptions # @option params [optional, Boolean] :debug to turn on the HTTparty debugging to stdout # @example # subscription = Subscription.new :username => 'user', :password => '123' def initialize(options) + raise ArgumentError, 'an options Hash is required' if !options.instance_of?(Hash) raise ArgumentError, ':username required' if options[:username].nil? raise ArgumentError, ':password required' if options[:password].nil? self.class.debug_output $stdout if options[:debug] self.class.base_uri options[:base_uri] || SMSIFIED_ONEAPI_PUBLIC_URI \ No newline at end of file