Exception: Holotype::Attribute::Definition::NoCollectionClassError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/holotype/attribute/definition/no_collection_class_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition) ⇒ NoCollectionClassError

Returns a new instance of NoCollectionClassError.



7
8
9
# File 'lib/holotype/attribute/definition/no_collection_class_error.rb', line 7

def initialize definition
  @definition = definition
end

Instance Attribute Details

#definitionObject (readonly)

Returns the value of attribute definition.



5
6
7
# File 'lib/holotype/attribute/definition/no_collection_class_error.rb', line 5

def definition
  @definition
end

Instance Method Details

#messageObject



11
12
13
14
# File 'lib/holotype/attribute/definition/no_collection_class_error.rb', line 11

def message
  "No collection class for attribute definition: #{definition.name}"
    .freeze
end