Class: DeployGate::API::V1::User

Inherits:
Object
  • Object
show all
Defined in:
lib/deploygate/api/v1/user.rb

Constant Summary collapse

ENDPOINT =
'/users'

Class Method Summary collapse

Class Method Details

.registered?(name, email) ⇒ Boolean

Parameters:

  • name (String)
  • email (String)

Returns:

  • (Boolean)


12
13
14
15
# File 'lib/deploygate/api/v1/user.rb', line 12

def registered?(name, email)
  res = Base.new().get("#{ENDPOINT}/registered", {:name => name, :email => email})
  res['results']['registered']
end