Module: Yinx

Defined in:
lib/yinx.rb,
lib/yinx/version.rb,
lib/yinx/note_store.rb,
lib/yinx/user_store.rb,
lib/yinx/down_config.rb

Defined Under Namespace

Classes: DownConfig, NoteMeta, NoteStore, UserStore

Constant Summary collapse

Ex_Result =
[:includeDeleted, :includeUpdateSequenceNum,
		   :includeAttributes, :includeLargestResourceMime,
:includeLargestResourceSize]
Result =
(NoteStore::NOTE_META_RESULT_SPECS - Ex_Result).reduce({}) do |hash, attr_present|
  hash[attr_present] = true; hash
end
VERSION =
"0.1.7"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject (readonly)

Returns the value of attribute config.



19
20
21
# File 'lib/yinx.rb', line 19

def config
  @config
end

Class Method Details

.fetch(real = true, &block) ⇒ Object



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

def fetch real = true, &block
  @real = real
  @config = DownConfig.new note_store
  config.instance_eval &block
  download
end

.fetch_allObject



28
29
30
# File 'lib/yinx.rb', line 28

def fetch_all
  fetch {book /./}
end

.fetch_all_books(real = true) ⇒ Object



32
33
34
35
# File 'lib/yinx.rb', line 32

def fetch_all_books real = true
  @real = real
  note_store.listNotebooks
end

.fetch_all_tags(real = true) ⇒ Object



37
38
39
40
# File 'lib/yinx.rb', line 37

def fetch_all_tags real = true
  @real = real
  note_store.listTags
end