Class: Eaternet::Prototype::ViolationData

Inherits:
Object
  • Object
show all
Defined in:
lib/eaternet/prototype.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(orig_key:, inspection_id:, violation_kind_id:) ⇒ ViolationData

Returns a new instance of ViolationData.


83
84
85
86
87
# File 'lib/eaternet/prototype.rb', line 83

def initialize(orig_key:, inspection_id:, violation_kind_id:)
  @orig_key = orig_key
  @inspection_id = inspection_id
  @violation_kind_id = violation_kind_id
end

Instance Attribute Details

#inspection_idString (readonly)

Returns:

  • (String)

81
82
83
# File 'lib/eaternet/prototype.rb', line 81

def inspection_id
  @inspection_id
end

#orig_keyString (readonly)

Returns:

  • (String)

81
82
83
# File 'lib/eaternet/prototype.rb', line 81

def orig_key
  @orig_key
end

#violation_kind_idString (readonly)

Returns:

  • (String)

81
82
83
# File 'lib/eaternet/prototype.rb', line 81

def violation_kind_id
  @violation_kind_id
end

Instance Method Details

#to_sObject


89
90
91
# File 'lib/eaternet/prototype.rb', line 89

def to_s
  "Violation #{@orig_key}"
end