Class: Helper::Rule
- Inherits:
-
Object
- Object
- Helper::Rule
- Defined in:
- lib/greenbutton/helpers.rb
Instance Attribute Summary collapse
-
#attr_name ⇒ Object
Returns the value of attribute attr_name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#xpath ⇒ Object
Returns the value of attribute xpath.
Instance Method Summary collapse
-
#initialize(attr_name, xpath, type) ⇒ Rule
constructor
A new instance of Rule.
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_name ⇒ Object
Returns the value of attribute attr_name.
50 51 52 |
# File 'lib/greenbutton/helpers.rb', line 50 def attr_name @attr_name end |
#type ⇒ Object
Returns the value of attribute type.
50 51 52 |
# File 'lib/greenbutton/helpers.rb', line 50 def type @type end |
#xpath ⇒ Object
Returns the value of attribute xpath.
50 51 52 |
# File 'lib/greenbutton/helpers.rb', line 50 def xpath @xpath end |