Class: ODDB::View::Drugs::TestGalenicGroupSelect::StubLookandfeel

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

Instance Method Summary (collapse)

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

- (Object) method_missing(*args)



46
47
48
# File 'test/test_view/drugs/galenicgroup.rb', line 46

def method_missing(*args)
  ''
end

Instance Method Details

- (Object) attributes(key)



43
44
45
# File 'test/test_view/drugs/galenicgroup.rb', line 43

def attributes(key)
  {}
end

- (Object) languages



33
34
35
# File 'test/test_view/drugs/galenicgroup.rb', line 33

def languages
  %w{de fr}
end

- (Object) lookup(key)



36
37
38
39
40
41
42
# File 'test/test_view/drugs/galenicgroup.rb', line 36

def lookup(key)
    {
      'de'    =>  'Deutsch',
    'fr'   => 'Französisch',
    :update  => 'Speichern',  
  }[key]
end