Class: ODDB::State::Drugs::StubResultAtc

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) packages=(value) (writeonly)

Sets the attribute packages

Parameters:

  • value

    the value to set the attribute packages to.



62
63
64
# File 'test/test_state/drugs/result.rb', line 62

def packages=(value)
  @packages = value
end

Instance Method Details

- (Object) active_packages



63
64
65
# File 'test/test_state/drugs/result.rb', line 63

def active_packages
  @packages.dup
end

- (Object) package_count



66
67
68
# File 'test/test_state/drugs/result.rb', line 66

def package_count
  @packages.size
end