Class: Classbench::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/classbench/rule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ Rule

Returns a new instance of Rule.



5
6
7
# File 'lib/classbench/rule.rb', line 5

def initialize(attrs)
  self.attributes = attrs
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



3
4
5
# File 'lib/classbench/rule.rb', line 3

def attributes
  @attributes
end

Instance Method Details

#fieldsObject



9
10
11
# File 'lib/classbench/rule.rb', line 9

def fields
  attributes.keys
end