Class: Helper::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/greenbutton/helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attr_name, xpath, type) ⇒ Rule

Returns a new instance of Rule.



52
53
54
55
56
# File 'lib/greenbutton/helpers.rb', line 52

def initialize(attr_name, xpath, type)
  @attr_name = attr_name
  @xpath = xpath
  @type = type
end

Instance Attribute Details

#attr_nameObject

Returns the value of attribute attr_name.



50
51
52
# File 'lib/greenbutton/helpers.rb', line 50

def attr_name
  @attr_name
end

#typeObject

Returns the value of attribute type.



50
51
52
# File 'lib/greenbutton/helpers.rb', line 50

def type
  @type
end

#xpathObject

Returns the value of attribute xpath.



50
51
52
# File 'lib/greenbutton/helpers.rb', line 50

def xpath
  @xpath
end