Class: Hames::Row
- Inherits:
-
Data
- Object
- Data
- Hames::Row
- Defined in:
- lib/hames/loader.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#disabled ⇒ Object
readonly
Returns the value of attribute disabled.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#plugin ⇒ Object
readonly
Returns the value of attribute plugin.
Class Method Summary collapse
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config
60 61 62 |
# File 'lib/hames/loader.rb', line 60 def config @config end |
#disabled ⇒ Object (readonly)
Returns the value of attribute disabled
60 61 62 |
# File 'lib/hames/loader.rb', line 60 def disabled @disabled end |
#id ⇒ Object (readonly)
Returns the value of attribute id
60 61 62 |
# File 'lib/hames/loader.rb', line 60 def id @id end |
#plugin ⇒ Object (readonly)
Returns the value of attribute plugin
60 61 62 |
# File 'lib/hames/loader.rb', line 60 def plugin @plugin end |
Class Method Details
.build(h) ⇒ Object
61 62 63 64 |
# File 'lib/hames/loader.rb', line 61 def self.build(h) new(id: h.fetch(:id).to_s, plugin: h.fetch(:plugin), config: h[:config] || {}, disabled: h[:disabled] || false) end |