lib/cellular/models/sms.rb in cellular-1.1.0 vs lib/cellular/models/sms.rb in cellular-1.2.0
- old
+ new
@@ -5,13 +5,13 @@
def initialize(options = {})
@backend = Cellular.config.backend
@recipient = options[:recipient]
- @sender = options[:sender]
+ @sender = options[:sender] || Cellular.config.sender
@message = options[:message]
- @price = options[:price]
- @country = options[:country]
+ @price = options[:price] || Cellular.config.price
+ @country = options[:country] || Cellular.config.country_code
@delivered = false
end
def deliver