Class: Zedkit::Projects

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

Class Method Summary collapse

Class Method Details

.content_sections(*args) {|reshh| ... } ⇒ Object

Yields:

  • (reshh)


21
22
23
24
25
26
# File 'lib/zedkit/projects.rb', line 21

def content_sections(*args)
  zopts = args.extract_zedkit_options!
  reshh = Zedkit::Client.get('content/sections', zopts[:user_key], zopts.zdelete_keys!(%w(user_key)))
  yield(reshh) if (not reshh.nil?) && block_given?
  reshh
end