Sha256: 88dd27d3d8295d06338771862276062580d409ff955dc1f972e3958b78b1be7c
Contents?: true
Size: 724 Bytes
Versions: 36
Compression:
Stored size: 724 Bytes
Contents
module DeployGate class User attr_reader :name # @param [String] name # @return [DeployGate::User] def initialize(name) @name = name end # @param [String] name # @param [String] email # @param [String] password # @return [DeployGate::User] def self.create(name, email, password) locale = Locale.current.language results = DeployGate::API::V1::User.create(name, email, password, locale) return if results[:error] DeployGate::User.new(results[:name]) end # @param [String] name # @param [String] email # @return [Boolean] def self.registered?(name, email) DeployGate::API::V1::User.registered?(name, email) end end end
Version data entries
36 entries across 36 versions & 1 rubygems