module Volt::Repos

Public Instance Methods

check_for_client?(repo_name) click to toggle source
# File lib/volt/volt/repos.rb, line 42
def check_for_client?(repo_name)
  unless Volt.client?
    fail "The #{repo_name} collection can only be accessed from the client side currently"
  end
end
cookies() click to toggle source
# File lib/volt/volt/repos.rb, line 35
def cookies
  @cookies ||= begin
    check_for_client?('cookies')
    CookiesRoot.new({}, persistor: Persistors::Cookies)
  end
end
flash() click to toggle source
# File lib/volt/volt/repos.rb, line 21
def flash
  @flash ||= begin
    check_for_client?('flash')
    FlashRoot.new({}, persistor: Persistors::Flash)
  end
end
local_store() click to toggle source
# File lib/volt/volt/repos.rb, line 28
def local_store
  @local_store ||= begin
    check_for_client?('local_store')
    LocalStoreRoot.new({}, persistor: Persistors::LocalStore)
  end
end
page() click to toggle source
# File lib/volt/volt/repos.rb, line 13
def page
  @page ||= PageRoot.new
end
params() click to toggle source
# File lib/volt/volt/repos.rb, line 9
def params
  @params ||= @url.params
end
store() click to toggle source
# File lib/volt/volt/repos.rb, line 17
def store
  @store ||= StoreRoot.new({}, persistor: Persistors::StoreFactory.new(tasks))
end
url() click to toggle source
# File lib/volt/volt/repos.rb, line 5
def url
  @url ||= URL.new
end