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

- old
+ new

@@ -1,23 +1,24 @@ require 'uri' require 'httpi' module Smess - class HttpBase + class HttpBase < Output include Smess::Logging - def initialize(sms) - @sms = sms + def initialize(config) + super HTTPI.log_level = :debug end - private - attr_reader :sms - def sender_id - ENV["SMESS_SENDER_ID"] + @sender_id || Smess.config.default_sender_id end + + private + + attr_reader :sms def from sms.originator || sender_id end \ No newline at end of file