Method: API::Author.wrap_all

Defined in:
lib/quintype/api/author.rb

.wrap_all(authors) ⇒ Object



5
6
7
8
9
10
# File 'lib/quintype/api/author.rb', line 5

def wrap_all(authors)
  authors ||= []
  authors.is_a?(Array) ?
    authors.map { |a| wrap(a) } :
    wrap(authors)
end