Class: Eaternet::Prototype::ViolationKindData

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:, code:, demerits:, description:) ⇒ ViolationKindData

Returns a new instance of ViolationKindData.


99
100
101
102
103
104
# File 'lib/eaternet/prototype.rb', line 99

def initialize(orig_key:, code:, demerits:, description:)
  @orig_key = orig_key
  @code = code
  @demerits = demerits
  @description = description
end

Instance Attribute Details

#codeString (readonly)

Returns:

  • (String)

97
98
99
# File 'lib/eaternet/prototype.rb', line 97

def code
  @code
end

#demeritsString (readonly)

Returns:

  • (String)

97
98
99
# File 'lib/eaternet/prototype.rb', line 97

def demerits
  @demerits
end

#descriptionString (readonly)

Returns:

  • (String)

97
98
99
# File 'lib/eaternet/prototype.rb', line 97

def description
  @description
end

#orig_keyString (readonly)

Returns:

  • (String)

97
98
99
# File 'lib/eaternet/prototype.rb', line 97

def orig_key
  @orig_key
end

Instance Method Details

#to_sObject


106
107
108
# File 'lib/eaternet/prototype.rb', line 106

def to_s
  "ViolationKind #{@orig_key}"
end