Module: Hatch::ClassMethods::InvalidInstanceMethods
- Defined in:
- lib/hatch.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
49 50 51 |
# File 'lib/hatch.rb', line 49 def errors @errors end |
Instance Method Details
#initialize(*validated_attributes) ⇒ Object
51 52 53 54 55 |
# File 'lib/hatch.rb', line 51 def initialize(*validated_attributes) @validated_attributes = validated_attributes @errors = Errors.build(@validated_attributes) respond_to_instance_methods end |
#valid? ⇒ Boolean
57 58 59 |
# File 'lib/hatch.rb', line 57 def valid? false end |