Class: TFSGraph::AbstractStore

Inherits:
Object
  • Object
show all
Includes:
StoreHelpers, TFSClient, TFSHelpers
Defined in:
lib/tfs_graph/abstract_store.rb

Constant Summary

Constants included from StoreHelpers

StoreHelpers::UPDATED_KEY

Constants included from TFSClient

TFSClient::InvalidConfig, TFSClient::REQUIRED_KEYS

Instance Method Summary collapse

Methods included from StoreHelpers

#flush_all, #last_updated_on, #mark_as_updated

Methods included from TFSHelpers

#base_username, #branch_base, #branch_path_to_name, #branch_project, #odata_path_to_server_path, #scrub_changeset, #server_path_to_odata_path

Methods included from TFSClient

#endpoint, #setup, #tfs, #tfs=

Instance Method Details

#cache_all(attr_set) ⇒ Object



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

def cache_all(attr_set)
  attr_set.map {|attrs| cache(attrs) }
end

#fetch_allObject



15
16
17
# File 'lib/tfs_graph/abstract_store.rb', line 15

def fetch_all
  normalize root_query.run
end

#fetch_and_cacheObject



11
12
13
# File 'lib/tfs_graph/abstract_store.rb', line 11

def fetch_and_cache
  cache_all fetch_all
end