lib/smess/outputs/smsglobal.rb in smess-1.0.10 vs lib/smess/outputs/smsglobal.rb in smess-2.0

- old
+ new

@@ -9,20 +9,17 @@ request.body = params http_post request end - private - - def username - ENV["SMESS_SMSGLOBAL_USER"] + attr_accessor :username, :password, :sender_id + def validate_config + @username = config.fetch(:username) + @password = config.fetch(:password) + @sender_id = config.fetch(:sender_id, Smess.config.default_sender_id) end - def password - ENV["SMESS_SMSGLOBAL_PASS"] - end - def sender_id - ENV["SMESS_SMSGLOBAL_SENDER_ID"] - end + + private def url "https://www.smsglobal.com/http-api.php" end \ No newline at end of file