Class: UnlockGateway::Setting
- Inherits:
-
Object
- Object
- UnlockGateway::Setting
- Defined in:
- lib/unlock_gateway/setting.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#key ⇒ Object
Returns the value of attribute key.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(key, title, description) ⇒ Setting
constructor
A new instance of Setting.
Constructor Details
#initialize(key, title, description) ⇒ Setting
Returns a new instance of Setting.
6 7 8 9 10 |
# File 'lib/unlock_gateway/setting.rb', line 6 def initialize(key, title, description) self.key = key self.title = title self.description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/unlock_gateway/setting.rb', line 4 def description @description end |
#key ⇒ Object
Returns the value of attribute key.
4 5 6 |
# File 'lib/unlock_gateway/setting.rb', line 4 def key @key end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/unlock_gateway/setting.rb', line 4 def title @title end |