Class: Esendex::Account
- Inherits:
-
Object
- Object
- Esendex::Account
- Extended by:
- Forwardable
- Defined in:
- lib/xednese/account.rb,
lib/xednese/account/messages.rb,
lib/xednese/account/dispatcher.rb
Defined Under Namespace
Classes: Dispatcher, Messages
Instance Method Summary collapse
- #dispatcher ⇒ Dispatcher
-
#initialize(credentials, response) ⇒ Account
constructor
A new instance of Account.
- #label ⇒ Object
- #label=(value) ⇒ Object
- #messages ⇒ Messages
Constructor Details
#initialize(credentials, response) ⇒ Account
Returns a new instance of Account.
4 5 6 7 |
# File 'lib/xednese/account.rb', line 4 def initialize(credentials, response) @credentials = credentials @response = response end |
Instance Method Details
#dispatcher ⇒ Dispatcher
11 12 13 |
# File 'lib/xednese/account.rb', line 11 def dispatcher Dispatcher.new(@credentials, reference) end |
#label ⇒ Object
25 26 27 |
# File 'lib/xednese/account.rb', line 25 def label @label || @response.label end |