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
37 38 39 |
# File 'lib/hames/loader.rb', line 37 def config @config end |
#disabled ⇒ Object (readonly)
Returns the value of attribute disabled
37 38 39 |
# File 'lib/hames/loader.rb', line 37 def disabled @disabled end |
#id ⇒ Object (readonly)
Returns the value of attribute id
37 38 39 |
# File 'lib/hames/loader.rb', line 37 def id @id end |
#plugin ⇒ Object (readonly)
Returns the value of attribute plugin
37 38 39 |
# File 'lib/hames/loader.rb', line 37 def plugin @plugin end |
Class Method Details
.build(h) ⇒ Object
38 39 40 41 |
# File 'lib/hames/loader.rb', line 38 def self.build(h) new(id: h.fetch(:id).to_s, plugin: h.fetch(:plugin), config: h[:config] || {}, disabled: h[:disabled] || false) end |