Class: DraftPunk::DraftCreationError
- Inherits:
-
ActiveRecord::RecordInvalid
- Object
- ActiveRecord::RecordInvalid
- DraftPunk::DraftCreationError
- Defined in:
- lib/draft_punk.rb
Instance Method Summary collapse
-
#initialize(message) ⇒ DraftCreationError
constructor
A new instance of DraftCreationError.
- #to_s ⇒ Object
Constructor Details
#initialize(message) ⇒ DraftCreationError
Returns a new instance of DraftCreationError.
34 35 36 |
# File 'lib/draft_punk.rb', line 34 def initialize() @message = end |
Instance Method Details
#to_s ⇒ Object
37 38 39 |
# File 'lib/draft_punk.rb', line 37 def to_s "the draft failed to be created: #{@message}" end |