Class: Hames::Row

Inherits:
Data
  • Object
show all
Defined in:
lib/hames/loader.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



37
38
39
# File 'lib/hames/loader.rb', line 37

def config
  @config
end

#disabledObject (readonly)

Returns the value of attribute disabled

Returns:

  • (Object)

    the current value of disabled



37
38
39
# File 'lib/hames/loader.rb', line 37

def disabled
  @disabled
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



37
38
39
# File 'lib/hames/loader.rb', line 37

def id
  @id
end

#pluginObject (readonly)

Returns the value of attribute plugin

Returns:

  • (Object)

    the current value of 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