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.
66 67 68 |
# File 'lib/hatch.rb', line 66 def errors @errors end |
Instance Method Details
#initialize(*validated_attributes) ⇒ Object
68 69 70 71 72 |
# File 'lib/hatch.rb', line 68 def initialize(*validated_attributes) @validated_attributes = validated_attributes @errors = Errors.build(@validated_attributes) respond_to_readable_attributes end |
#valid? ⇒ Boolean
74 75 76 |
# File 'lib/hatch.rb', line 74 def valid? false end |