Class: DeployGate::User

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ DeployGate::User

Parameters:

  • name (String)


7
8
9
# File 'lib/deploygate/user.rb', line 7

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/deploygate/user.rb', line 3

def name
  @name
end

Class Method Details

.registered?(name, email) ⇒ Boolean

Parameters:

  • name (String)
  • email (String)

Returns:

  • (Boolean)


14
15
16
# File 'lib/deploygate/user.rb', line 14

def self.registered?(name, email)
  DeployGate::API::V1::User.registered?(name, email)
end