Method: ICFS::Api#initialize

Defined in:
lib/icfs/api.rb

#initialize(stats, users, cache, store, config = nil) ⇒ Api

New API

Parameters:

  • stats (Array<String>)

    Global stats

  • users (Users)

    the User/role/group interface

  • cache (Cache)

    the cache

  • store (Store)

    the store

  • config (Config) (defaults to: nil)

    the config settings, optional



56
57
58
59
60
61
62
63
# File 'lib/icfs/api.rb', line 56

def initialize(stats, users, cache, store, config=nil)
  @users = users
  @cache = cache
  @store = store
  @gstats = stats.map{|st| st.dup.freeze }.freeze
  @config = config
  reset
end