Class: ODDB::View::Drugs::TestGalenicGroupSelect::StubSession

Inherits:
Object
  • Object
show all
Defined in:
test/test_view/drugs/galenicgroup.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubSession) initialize

A new instance of StubSession



52
53
54
55
56
57
58
59
60
61
# File 'test/test_view/drugs/galenicgroup.rb', line 52

def initialize()
  @galenic_groups = [
  StubGalenicGroup.new("Tabletten"), 
  StubGalenicGroup.new("Salben"),  
  ].inject({}) { |inj,group| 
    group.pointer = Persistence::Pointer.new([:galenic_group, group.oid])
    inj.store(group.oid, group)
    inj
  }
end

Instance Attribute Details

- (Object) galenic_groups (readonly)

Returns the value of attribute galenic_groups



51
52
53
# File 'test/test_view/drugs/galenicgroup.rb', line 51

def galenic_groups
  @galenic_groups
end

Instance Method Details

- (Object) app



62
63
64
# File 'test/test_view/drugs/galenicgroup.rb', line 62

def app 
  self
end

- (Object) lookandfeel



65
66
67
# File 'test/test_view/drugs/galenicgroup.rb', line 65

def lookandfeel
  StubLookandfeel.new
end