Class: MailDiode::SingleSetting
- Inherits:
-
Object
- Object
- MailDiode::SingleSetting
- Defined in:
- lib/settings.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ SingleSetting
constructor
A new instance of SingleSetting.
Constructor Details
#initialize(key, value) ⇒ SingleSetting
Returns a new instance of SingleSetting.
22 23 24 25 |
# File 'lib/settings.rb', line 22 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
19 20 21 |
# File 'lib/settings.rb', line 19 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
20 21 22 |
# File 'lib/settings.rb', line 20 def value @value end |