Class: Mediaburst::API
- Inherits:
-
Object
- Object
- Mediaburst::API
- Defined in:
- lib/mediaburst-rails.rb
Instance Method Summary collapse
-
#initialize(u = nil, p = nil) ⇒ API
constructor
A new instance of API.
- #send_message_with_defaults(numbers, content, options = {}) ⇒ Object
Constructor Details
#initialize(u = nil, p = nil) ⇒ API
Returns a new instance of API.
5 6 7 8 9 10 |
# File 'lib/mediaburst-rails.rb', line 5 def initialize(u = nil, p = nil) @auth = { :username => u || ::Mediaburst::Rails.username, :password => p || ::Mediaburst::Rails.password } end |
Instance Method Details
#send_message_with_defaults(numbers, content, options = {}) ⇒ Object
12 13 14 |
# File 'lib/mediaburst-rails.rb', line 12 def (numbers, content, = {}) (numbers, content, .merge()) end |