Exception: SmartProperties::AssignmentError

Inherits:
Error
  • Object
show all
Defined in:
lib/smart_properties/errors.rb

Direct Known Subclasses

InvalidValueError, MissingValueError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sender, property, message) ⇒ AssignmentError

Returns a new instance of AssignmentError.



9
10
11
12
13
# File 'lib/smart_properties/errors.rb', line 9

def initialize(sender, property, message)
  @sender = sender
  @property = property
  super(message)
end

Instance Attribute Details

#propertyObject

Returns the value of attribute property.



7
8
9
# File 'lib/smart_properties/errors.rb', line 7

def property
  @property
end

#senderObject

Returns the value of attribute sender.



6
7
8
# File 'lib/smart_properties/errors.rb', line 6

def sender
  @sender
end