Exception: Abiquo::NotAllowed

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/abiquo.rb

Instance Method Summary collapse

Constructor Details

#initialize(method, url) ⇒ NotAllowed

Returns a new instance of NotAllowed.



11
12
13
14
# File 'lib/abiquo.rb', line 11

def initialize(method, url)
  @method = method
  @url = url
end

Instance Method Details

#messageObject



16
17
18
# File 'lib/abiquo.rb', line 16

def message
  "Method #{@method} not allowed for #{@url}"
end