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.
293 294 295 |
# File 'lib/mandrill/api.rb', line 293 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
291 292 293 |
# File 'lib/mandrill/api.rb', line 291 def master @master end |
Instance Method Details
#info ⇒ Hash
Return the information about the API-connected user
372 373 374 375 |
# File 'lib/mandrill/api.rb', line 372 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)
379 380 381 382 |
# File 'lib/mandrill/api.rb', line 379 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
397 398 399 400 |
# File 'lib/mandrill/api.rb', line 397 def senders() _params = {} return @master.call 'users/senders', _params end |