Class: Esendex
- Inherits:
-
Object
- Object
- Esendex
- Defined in:
- lib/xednese.rb,
lib/xednese/users.rb,
lib/xednese/client.rb,
lib/xednese/version.rb,
lib/xednese/accounts.rb,
lib/xednese/messages.rb,
lib/xednese/dispatcher.rb,
lib/xednese/responses/parser.rb,
lib/xednese/requests/messages.rb,
lib/xednese/responses/account.rb,
lib/xednese/responses/accounts.rb,
lib/xednese/responses/message_header.rb,
lib/xednese/responses/message_headers.rb,
lib/xednese/responses/message_dispatcher_headers.rb
Defined Under Namespace
Modules: Requests, Responses Classes: Accounts, Client, Credentials, Dispatcher, Messages, Users
Constant Summary collapse
- VERSION =
'0.0.1'
Instance Method Summary collapse
- #account ⇒ Object
- #dispatcher ⇒ Object
-
#initialize(username, password, account_reference) ⇒ Esendex
constructor
A new instance of Esendex.
- #messages ⇒ Object
- #user ⇒ Object
Constructor Details
#initialize(username, password, account_reference) ⇒ Esendex
Returns a new instance of Esendex.
27 28 29 |
# File 'lib/xednese.rb', line 27 def initialize(username, password, account_reference) @credentials = Credentials.new(username, password, account_reference) end |
Instance Method Details
#account ⇒ Object
31 32 33 |
# File 'lib/xednese.rb', line 31 def account Accounts.new(@credentials) end |
#dispatcher ⇒ Object
35 36 37 |
# File 'lib/xednese.rb', line 35 def dispatcher Dispatcher.new(@credentials) end |