Class: SkadateGems::Dev::Remote::Configs::Config
- Inherits:
-
Object
- Object
- SkadateGems::Dev::Remote::Configs::Config
- Defined in:
- lib/skadategems/dev/remote/configs.rb
Overview
Represents remote application config entry.
Instance Attribute Summary collapse
-
#id ⇒ Fixnum
readonly
Config entry id.
-
#name ⇒ String
readonly
Config entry name.
-
#update_status ⇒ nil | :updated | :not_modified
readonly
Config value update status.
-
#value ⇒ mixed
Config entry value.
Instance Method Summary collapse
-
#initialize(remote, id, name, value) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(remote, id, name, value) ⇒ Config
Returns a new instance of Config.
66 67 68 |
# File 'lib/skadategems/dev/remote/configs.rb', line 66 def initialize(remote, id, name, value) @remote, @id, @name, @value = remote, id, name, value end |
Instance Attribute Details
#id ⇒ Fixnum (readonly)
Returns config entry id.
51 52 53 |
# File 'lib/skadategems/dev/remote/configs.rb', line 51 def id @id end |
#name ⇒ String (readonly)
Returns config entry name.
54 55 56 |
# File 'lib/skadategems/dev/remote/configs.rb', line 54 def name @name end |
#update_status ⇒ nil | :updated | :not_modified (readonly)
Returns config value update status.
60 61 62 |
# File 'lib/skadategems/dev/remote/configs.rb', line 60 def update_status @update_status end |
#value ⇒ mixed
Returns config entry value.
57 58 59 |
# File 'lib/skadategems/dev/remote/configs.rb', line 57 def value @value end |