Exception: Serverkit::Errors::InvalidRecipeTypeError
- Defined in:
- lib/serverkit/errors/invalid_recipe_type_error.rb
Instance Method Summary collapse
-
#initialize(type) ⇒ InvalidRecipeTypeError
constructor
A new instance of InvalidRecipeTypeError.
- #to_s ⇒ Object
Constructor Details
#initialize(type) ⇒ InvalidRecipeTypeError
Returns a new instance of InvalidRecipeTypeError.
7 8 9 |
# File 'lib/serverkit/errors/invalid_recipe_type_error.rb', line 7 def initialize(type) @type = type end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/serverkit/errors/invalid_recipe_type_error.rb', line 11 def to_s "Recipe data must be a Hash, not #{@type}" end |