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.
207 208 209 |
# File 'lib/mandrill/api.rb', line 207 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
205 206 207 |
# File 'lib/mandrill/api.rb', line 205 def master @master end |
Instance Method Details
#info ⇒ Hash
Return the information about the API-connected user
286 287 288 289 |
# File 'lib/mandrill/api.rb', line 286 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)
293 294 295 296 |
# File 'lib/mandrill/api.rb', line 293 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
311 312 313 314 |
# File 'lib/mandrill/api.rb', line 311 def senders() _params = {} return @master.call 'users/senders', _params end |