Class: ODDB::State::Drugs::StubResultPackage

Inherits:
Object
  • Object
show all
Defined in:
test/test_state/drugs/result.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubResultPackage) initialize(size, price, mice, *args)

A new instance of StubResultPackage



31
32
33
# File 'test/test_state/drugs/result.rb', line 31

def initialize(size, price, mice, *args)
  @size, @price, @mice = size, price, mice
end

Instance Attribute Details

- (Object) mice (readonly)

Returns the value of attribute mice



30
31
32
# File 'test/test_state/drugs/result.rb', line 30

def mice
  @mice
end

- (Object) price (readonly)

Returns the value of attribute price



30
31
32
# File 'test/test_state/drugs/result.rb', line 30

def price
  @price
end

- (Object) size (readonly)

Returns the value of attribute size



30
31
32
# File 'test/test_state/drugs/result.rb', line 30

def size
  @size
end

Instance Method Details

- (Boolean) active?

Returns:

  • (Boolean)


49
50
51
# File 'test/test_state/drugs/result.rb', line 49

def active?
  true
end

- (Object) comparable_size



43
44
45
# File 'test/test_state/drugs/result.rb', line 43

def comparable_size
  10
end

- (Object) dose



40
41
42
# File 'test/test_state/drugs/result.rb', line 40

def dose
  10
end

- (Object) galenic_form



37
38
39
# File 'test/test_state/drugs/result.rb', line 37

def galenic_form
  'abc'
end

- (Object) generic_type



46
47
48
# File 'test/test_state/drugs/result.rb', line 46

def generic_type
  'generika'
end

- (Object) name_base



34
35
36
# File 'test/test_state/drugs/result.rb', line 34

def name_base
  'abc'
end