Class: MessageBird::HTTP::Sender

Inherits:
Object
  • Object
show all
Defined in:
lib/messagebird/http/sender.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.response_factory=(value) ⇒ Object

Sets the attribute response_factory

Parameters:

  • value

    the value to set the attribute response_factory to.



5
6
7
# File 'lib/messagebird/http/sender.rb', line 5

def response_factory=(value)
  @response_factory = value
end

Class Method Details

.deliver(sms, &block) ⇒ Object



7
8
9
10
# File 'lib/messagebird/http/sender.rb', line 7

def deliver(sms, &block)
  ensure_valid_sms!(sms)
  send_sms(sms, &block)
end