Class: Configural::User
- Inherits:
-
Object
- Object
- Configural::User
- Defined in:
- lib/configural/user.rb
Instance Attribute Summary collapse
-
#platform ⇒ Object
Returns the value of attribute platform.
Instance Method Summary collapse
- #cache ⇒ Object
- #cache_path ⇒ Object
- #config ⇒ Object
- #config_path ⇒ Object
- #data ⇒ Object
- #data_path ⇒ Object
-
#initialize(app) ⇒ User
constructor
A new instance of User.
- #save_all ⇒ Object
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
#platform ⇒ Object
Returns the value of attribute platform.
34 35 36 |
# File 'lib/configural/user.rb', line 34 def platform @platform end |
Instance Method Details
#cache ⇒ Object
49 50 51 |
# File 'lib/configural/user.rb', line 49 def cache @cache ||= Configural::Cache.new(self) end |
#cache_path ⇒ Object
53 54 55 |
# File 'lib/configural/user.rb', line 53 def cache_path @platform.cache_path end |
#config ⇒ Object
41 42 43 |
# File 'lib/configural/user.rb', line 41 def config @config ||= Configural::Config.new(self) end |
#config_path ⇒ Object
45 46 47 |
# File 'lib/configural/user.rb', line 45 def config_path @platform.config_path end |
#data ⇒ Object
57 58 59 |
# File 'lib/configural/user.rb', line 57 def data @data ||= Configural::Data.new(self) end |
#data_path ⇒ Object
61 62 63 |
# File 'lib/configural/user.rb', line 61 def data_path @platform.data_path end |
#save_all ⇒ Object
65 66 67 68 |
# File 'lib/configural/user.rb', line 65 def save_all @config.save_all if @config self end |