Class: Zedkit::Users

Inherits:
Object
  • Object
show all
Defined in:
lib/zedkit/resources/users.rb

Defined Under Namespace

Classes: Projects

Class Method Summary collapse

Class Method Details

.create(zks = {}, &block) ⇒ Object



31
32
33
# File 'lib/zedkit/resources/users.rb', line 31

def create(zks = {}, &block)
  Zedkit::Client.crud(:create, "users", zks, [], &block)
end

.get(zks = {}, &block) ⇒ Object



27
28
29
# File 'lib/zedkit/resources/users.rb', line 27

def get(zks = {}, &block)
  Zedkit::Client.crud(:get, "users/#{zks[:uuid]}", zks, [], &block)
end

.update(zks = {}, &block) ⇒ Object



35
36
# File 'lib/zedkit/resources/users.rb', line 35

def update(zks = {}, &block)
end

.verify(zks = {}) {|rs| ... } ⇒ Object

Yields:

  • (rs)


21
22
23
24
25
# File 'lib/zedkit/resources/users.rb', line 21

def verify(zks = {}, &block)
  rs = Zedkit::Client.verify(zks[:login], zks[:password])
  yield(rs) if rs && block_given?
  rs
end