Class: OpenMarket::Base
- Inherits:
-
Object
- Object
- OpenMarket::Base
- Defined in:
- lib/open_market/base.rb
Instance Method Summary collapse
-
#initialize(account_id, account_password, options = {}) ⇒ Base
constructor
A new instance of Base.
- #preview(phone_number) ⇒ Object
Constructor Details
#initialize(account_id, account_password, options = {}) ⇒ Base
Returns a new instance of Base.
4 5 6 7 8 9 10 |
# File 'lib/open_market/base.rb', line 4 def initialize(account_id, account_password, = {}) @account_id = account_id @account_password = account_password @server = [:server] || 'smsc-01.openmarket.com' @path = [:path] || '/wmp' end |
Instance Method Details
#preview(phone_number) ⇒ Object
12 13 14 |
# File 'lib/open_market/base.rb', line 12 def preview(phone_number) request(:type => 'preview', :destination => { :address => phone_number }) end |