Class: Gringotts::Attempt
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gringotts::Attempt
- Defined in:
- app/models/gringotts/attempt.rb
Instance Method Summary collapse
Instance Method Details
#successful? ⇒ Boolean
15 16 17 |
# File 'app/models/gringotts/attempt.rb', line 15 def successful? return self.successful end |
#validate(code) ⇒ Object
11 12 13 |
# File 'app/models/gringotts/attempt.rb', line 11 def validate(code) return self.valid? && AttemptValidator.valid?(self) end |