Class: EnoughFields::Result
- Inherits:
-
Object
- Object
- EnoughFields::Result
- Defined in:
- lib/enough_fields/monit_set.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#used ⇒ Object
Returns the value of attribute used.
Instance Method Summary collapse
-
#initialize(field, used) ⇒ Result
constructor
A new instance of Result.
- #used? ⇒ Boolean
Constructor Details
#initialize(field, used) ⇒ Result
Returns a new instance of Result.
7 8 9 10 |
# File 'lib/enough_fields/monit_set.rb', line 7 def initialize(field, used) @field = field @used = used end |
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field.
5 6 7 |
# File 'lib/enough_fields/monit_set.rb', line 5 def field @field end |
#used ⇒ Object
Returns the value of attribute used.
5 6 7 |
# File 'lib/enough_fields/monit_set.rb', line 5 def used @used end |
Instance Method Details
#used? ⇒ Boolean
12 13 14 |
# File 'lib/enough_fields/monit_set.rb', line 12 def used? used == true end |