Class: ODDB::StubRegistrationSequence

Inherits:
Object
  • Object
show all
Defined in:
test/test_model/registration.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubRegistrationSequence) initialize(key)

A new instance of StubRegistrationSequence



23
24
25
# File 'test/test_model/registration.rb', line 23

def initialize(key)
  @seqnr = key
end

Instance Attribute Details

- (Object) accepted (readonly)

Returns the value of attribute accepted



21
22
23
# File 'test/test_model/registration.rb', line 21

def accepted
  @accepted
end

- (Object) atc_class

Returns the value of attribute atc_class



22
23
24
# File 'test/test_model/registration.rb', line 22

def atc_class
  @atc_class
end

- (Object) block_result (readonly)

Returns the value of attribute block_result



21
22
23
# File 'test/test_model/registration.rb', line 21

def block_result
  @block_result
end

- (Object) name

Returns the value of attribute name



22
23
24
# File 'test/test_model/registration.rb', line 22

def name
  @name
end

- (Object) registration

Returns the value of attribute registration



22
23
24
# File 'test/test_model/registration.rb', line 22

def registration
  @registration
end

- (Object) seqnr (readonly)

Returns the value of attribute seqnr



21
22
23
# File 'test/test_model/registration.rb', line 21

def seqnr
  @seqnr
end

- (Object) substance_names

Returns the value of attribute substance_names



22
23
24
# File 'test/test_model/registration.rb', line 22

def substance_names
  @substance_names
end

Instance Method Details

- (Boolean) acceptable?

Returns:

  • (Boolean)


29
30
31
# File 'test/test_model/registration.rb', line 29

def acceptable?
  @atc_class && @name
end

- (Object) accepted!(*args)



26
27
28
# File 'test/test_model/registration.rb', line 26

def accepted!(*args)
  @accepted = true
end

- (Object) each_package(&block)



32
33
34
# File 'test/test_model/registration.rb', line 32

def each_package (&block)
  @block_result = block.call(@seqnr)
end

- (Object) package_count



35
36
37
# File 'test/test_model/registration.rb', line 35

def package_count
  4
end