Class: Violated::Violation

Inherits:
Struct
  • Object
show all
Defined in:
lib/violated/violation.rb

Instance Attribute Summary collapse

Instance Attribute Details

#fieldObject

Returns the value of attribute field

Returns:

  • (Object)

    the current value of field



2
3
4
# File 'lib/violated/violation.rb', line 2

def field
  @field
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



2
3
4
# File 'lib/violated/violation.rb', line 2

def reason
  @reason
end