Class: ODDB::State::Migel::Result::SubgroupFacade

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
src/state/migel/result.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (SubgroupFacade) initialize(subgroup)

A new instance of SubgroupFacade



17
18
19
20
# File 'src/state/migel/result.rb', line 17

def initialize(subgroup)
  @products = []
  super(subgroup)
end

Instance Attribute Details

- (Object) products (readonly)

Returns the value of attribute products



16
17
18
# File 'src/state/migel/result.rb', line 16

def products
  @products
end

Instance Method Details

- (Object) add_product(prod)



21
22
23
24
# File 'src/state/migel/result.rb', line 21

def add_product(prod)
  @products.push(prod)
  prod
end