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.
151 152 153 |
# File 'lib/mandrill/api.rb', line 151 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
149 150 151 |
# File 'lib/mandrill/api.rb', line 149 def master @master end |
Instance Method Details
#info ⇒ Hash
Return the information about the API-connected user
230 231 232 233 |
# File 'lib/mandrill/api.rb', line 230 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)
237 238 239 240 |
# File 'lib/mandrill/api.rb', line 237 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
255 256 257 258 |
# File 'lib/mandrill/api.rb', line 255 def senders() _params = {} return @master.call 'users/senders', _params end |