Class: Mailinator::Api

Inherits:
Object
  • Object
show all
Defined in:
lib/mailinator/api.rb

Defined Under Namespace

Classes: NotFound, RequestError

Instance Method Summary collapse

Instance Method Details

#get(url, params = {}) ⇒ Object


10
11
12
13
# File 'lib/mailinator/api.rb', line 10

def get(url, params = {})
  response = request(url, params)
  handle_response(response)
end

#tokenObject


15
16
17
# File 'lib/mailinator/api.rb', line 15

def token
  Mailinator.config.token
end