Class: LMC::DeviceDSCUi::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/lmc/config/device_dsc_ui.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(group_wrapper) ⇒ Group

Returns a new instance of Group.



64
65
66
67
68
# File 'lib/lmc/config/device_dsc_ui.rb', line 64

def initialize(group_wrapper)
  group = group_wrapper['group']
  @names = group['name']
  @items = group['members'].map { |item_wrapper| Item.new item_wrapper }
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items.



62
63
64
# File 'lib/lmc/config/device_dsc_ui.rb', line 62

def items
  @items
end

#namesObject (readonly)

Returns the value of attribute names.



62
63
64
# File 'lib/lmc/config/device_dsc_ui.rb', line 62

def names
  @names
end