Class: ODDB::State::Interactions::Basket::ObservedInteraction

Inherits:
Object
  • Object
show all
Defined in:
src/state/interactions/basket.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (ObservedInteraction) initialize(substance, fachinfo, pattern, match)

A new instance of ObservedInteraction



17
18
19
# File 'src/state/interactions/basket.rb', line 17

def initialize(substance, fachinfo, pattern, match)
  @substance, @fachinfo, @pattern, @match = substance, fachinfo, pattern, match
end

Instance Attribute Details

- (Object) fachinfo (readonly)

Returns the value of attribute fachinfo



16
17
18
# File 'src/state/interactions/basket.rb', line 16

def fachinfo
  @fachinfo
end

- (Object) match (readonly)

Returns the value of attribute match



16
17
18
# File 'src/state/interactions/basket.rb', line 16

def match
  @match
end

- (Object) pattern (readonly)

Returns the value of attribute pattern



16
17
18
# File 'src/state/interactions/basket.rb', line 16

def pattern
  @pattern
end

- (Object) substance (readonly)

Returns the value of attribute substance



16
17
18
# File 'src/state/interactions/basket.rb', line 16

def substance
  @substance
end

Instance Method Details

- (Boolean) eql?(other)

Returns:

  • (Boolean)


20
21
22
# File 'src/state/interactions/basket.rb', line 20

def eql?(other)
  @fachinfo.eql? other.fachinfo
end

- (Object) hash



23
24
25
# File 'src/state/interactions/basket.rb', line 23

def hash
  @fachinfo.hash
end