Class: BMC::SMS::Strategies::Test

Inherits:
Object
  • Object
show all
Defined in:
app/sms/bmc/sms/strategies/test.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.deliveriesObject



2
3
4
# File 'app/sms/bmc/sms/strategies/test.rb', line 2

def self.deliveries
  @deliveries ||= []
end

Instance Method Details

#call(data) ⇒ Object



6
7
8
9
# File 'app/sms/bmc/sms/strategies/test.rb', line 6

def call(data)
  self.class.deliveries << data
  Rails.logger.info "New SMS sent : #{data.inspect}"
end