class Yinx::SQL::JsonBatch

Public Instance Methods

books() click to toggle source
# File lib/yinx_sql/json_batch.rb, line 4
def books
  batch.
    map { |note| [note['notebookGuid'], note['book']] }.
    uniq.
    map { |id_name| id_name[1] }
end
stacks() click to toggle source
# File lib/yinx_sql/json_batch.rb, line 11
def stacks
  batch.
    map { |note| note['stack'] }.
    uniq
end
tags() click to toggle source
# File lib/yinx_sql/json_batch.rb, line 17
def tags
  batch.
    map { |note| note['tags'] }.
    flatten.
    uniq
end