Sha256: 0780602bf7e4307772a29793fd187e993bfe894aaa97f4a0e2e965cc4d49cee2
Contents?: true
Size: 490 Bytes
Versions: 3
Compression:
Stored size: 490 Bytes
Contents
module Rasti class Model class NotAssignedAttributeError < StandardError attr_reader :attribute def initialize(attribute) @attribute = attribute super "Not assigned attribute: #{attribute}" end end class UnexpectedAttributesError < StandardError attr_reader :attributes def initialize(attributes) @attributes = attributes super "Unexpected attributes: #{attributes.join(', ')}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rasti-model-2.0.0 | lib/rasti/model/errors.rb |
rasti-model-1.0.1 | lib/rasti/model/errors.rb |
rasti-model-1.0.0 | lib/rasti/model/errors.rb |