Exception: NinjaModel::AttributeMethods::AttributeAssignmentError

Inherits:
NinjaModelError
  • Object
show all
Defined in:
lib/ninja_model/attribute_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, exception, attribute) ⇒ AttributeAssignmentError

Returns a new instance of AttributeAssignmentError.



52
53
54
55
56
57
# File 'lib/ninja_model/attribute_methods.rb', line 52

def initialize(message, exception, attribute)
  @exception = exception
  @attribute = attribute
  @message = message
  @mymessage = message
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



50
51
52
# File 'lib/ninja_model/attribute_methods.rb', line 50

def attribute
  @attribute
end

#exceptionObject (readonly)

Returns the value of attribute exception.



50
51
52
# File 'lib/ninja_model/attribute_methods.rb', line 50

def exception
  @exception
end

#mymessageObject (readonly)

Returns the value of attribute mymessage.



51
52
53
# File 'lib/ninja_model/attribute_methods.rb', line 51

def mymessage
  @mymessage
end