Class: Lode::Setting
- Inherits:
-
Data
- Object
- Data
- Lode::Setting
- Defined in:
- lib/lode/setting.rb
Overview
Defines a configuration setting.
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#primary_key ⇒ Object
readonly
Returns the value of attribute primary_key.
Instance Method Summary collapse
-
#initialize(model: Hash, primary_key: PRIMARY_KEY) ⇒ Setting
constructor
A new instance of Setting.
Constructor Details
#initialize(model: Hash, primary_key: PRIMARY_KEY) ⇒ Setting
Returns a new instance of Setting.
6 7 8 |
# File 'lib/lode/setting.rb', line 6 def initialize model: Hash, primary_key: PRIMARY_KEY super end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model
5 6 7 |
# File 'lib/lode/setting.rb', line 5 def model @model end |
#primary_key ⇒ Object (readonly)
Returns the value of attribute primary_key
5 6 7 |
# File 'lib/lode/setting.rb', line 5 def primary_key @primary_key end |