Class: EnoughFields::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/enough_fields/monit_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldObject

Returns the value of attribute field.



5
6
7
# File 'lib/enough_fields/monit_set.rb', line 5

def field
  @field
end

#usedObject

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

Returns:

  • (Boolean)


12
13
14
# File 'lib/enough_fields/monit_set.rb', line 12

def used?
  used == true
end