Class: Configural::User

Inherits:
Object
  • Object
show all
Defined in:
lib/configural/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ User

Returns a new instance of User.



36
37
38
39
# File 'lib/configural/user.rb', line 36

def initialize( app )
  @app = app
  @platform = Configural::Platform.get_platform(app).new(app)
end

Instance Attribute Details

#platformObject

Returns the value of attribute platform.



34
35
36
# File 'lib/configural/user.rb', line 34

def platform
  @platform
end

Instance Method Details

#cacheObject



49
50
51
# File 'lib/configural/user.rb', line 49

def cache
  @cache ||= Configural::Cache.new(self)
end

#cache_pathObject



53
54
55
# File 'lib/configural/user.rb', line 53

def cache_path
  @platform.cache_path
end

#configObject



41
42
43
# File 'lib/configural/user.rb', line 41

def config
  @config ||= Configural::Config.new(self)
end

#config_pathObject



45
46
47
# File 'lib/configural/user.rb', line 45

def config_path
  @platform.config_path
end

#dataObject



57
58
59
# File 'lib/configural/user.rb', line 57

def data
  @data ||= Configural::Data.new(self)
end

#data_pathObject



61
62
63
# File 'lib/configural/user.rb', line 61

def data_path
  @platform.data_path
end

#save_allObject



65
66
67
68
# File 'lib/configural/user.rb', line 65

def save_all
  @config.save_all if @config
  self
end