Class: Spectro::Spec

Inherits:
Object
  • Object
show all
Defined in:
lib/spectro/spec.rb,
lib/spectro/spec/rule.rb,
lib/spectro/spec/parser.rb,
lib/spectro/spec/signature.rb

Defined Under Namespace

Classes: Parser, Rule, Signature

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(md5, signature, rules) ⇒ Spec

Returns a new instance of Spec

Parameters:


13
14
15
16
17
# File 'lib/spectro/spec.rb', line 13

def initialize md5, signature, rules
  self.md5 = md5
  self.rules = rules
  self.signature = signature
end

Instance Attribute Details

#md5Object

Returns the value of attribute md5


8
9
10
# File 'lib/spectro/spec.rb', line 8

def md5
  @md5
end

#rulesObject

Returns the value of attribute rules


8
9
10
# File 'lib/spectro/spec.rb', line 8

def rules
  @rules
end

#signatureObject

Returns the value of attribute signature


8
9
10
# File 'lib/spectro/spec.rb', line 8

def signature
  @signature
end

Instance Method Details

#==(spec) ⇒ Object


19
20
21
22
23
# File 'lib/spectro/spec.rb', line 19

def == spec
  return \
    self.signature == spec.signature && \
    self.rules == spec.rules
end