Class: Mediaburst::API

Inherits:
Object
  • Object
show all
Defined in:
lib/mediaburst-rails.rb

Instance Method Summary collapse

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 send_message_with_defaults(numbers, content, options = {})
  send_message_without_defaults(numbers, content, default_options.merge(options))
end