Class: RSimpy::Configuration
- Inherits:
-
Object
- Object
- RSimpy::Configuration
- Defined in:
- lib/configuration.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
writeonly
Sets the attribute user.
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(storage_service) ⇒ Configuration
constructor
A new instance of Configuration.
- #save ⇒ Object
- #stored? ⇒ Boolean
Constructor Details
#initialize(storage_service) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/configuration.rb', line 5 def initialize storage_service @storage_service = storage_service end |
Instance Attribute Details
#user=(value) ⇒ Object (writeonly)
Sets the attribute user
3 4 5 |
# File 'lib/configuration.rb', line 3 def user=(value) @user = value end |
Instance Method Details
#get ⇒ Object
17 18 19 |
# File 'lib/configuration.rb', line 17 def get @storage_service.get end |
#save ⇒ Object
13 14 15 |
# File 'lib/configuration.rb', line 13 def save @storage_service.save @user end |
#stored? ⇒ Boolean
9 10 11 |
# File 'lib/configuration.rb', line 9 def stored? @storage_service.stored? end |