Class: Mandrill::Users
- Inherits:
-
Object
- Object
- Mandrill::Users
- Defined in:
- lib/mandrill/api.rb
Instance Attribute Summary collapse
-
#master ⇒ Object
Returns the value of attribute master.
Instance Method Summary collapse
-
#info ⇒ Hash
Return the information about the API-connected user.
-
#initialize(master) ⇒ Users
constructor
A new instance of Users.
-
#ping ⇒ Hash
Validate an API key and respond to a ping (anal JSON parser version).
-
#senders ⇒ Array
Return the senders that have tried to use this account, both verified and unverified.
Constructor Details
#initialize(master) ⇒ Users
Returns a new instance of Users.
312 313 314 |
# File 'lib/mandrill/api.rb', line 312 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
310 311 312 |
# File 'lib/mandrill/api.rb', line 310 def master @master end |
Instance Method Details
#info ⇒ Hash
Return the information about the API-connected user
391 392 393 394 |
# File 'lib/mandrill/api.rb', line 391 def info() _params = {} return @master.call 'users/info', _params end |
#ping ⇒ Hash
Validate an API key and respond to a ping (anal JSON parser version)
398 399 400 401 |
# File 'lib/mandrill/api.rb', line 398 def ping() _params = {} return @master.call 'users/ping2', _params end |
#senders ⇒ Array
Return the senders that have tried to use this account, both verified and unverified
418 419 420 421 |
# File 'lib/mandrill/api.rb', line 418 def senders() _params = {} return @master.call 'users/senders', _params end |