class Battlerite::DuplicateRecordError
Attributes
id[R]
records[R]
Public Class Methods
new(data, msg="Two or more records exist with the same ID.")
click to toggle source
# File lib/battlerite/errors.rb, line 8 def initialize data, msg="Two or more records exist with the same ID." @id = data[:id] @records = data[:records] @message = msg end
Public Instance Methods
message()
click to toggle source
# File lib/battlerite/errors.rb, line 14 def message @message end