Exception: API::API::MovedPermanentlyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/api/api.rb

Constant Summary collapse

MSG_PREFIX =
'This resource has been moved permanently to'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location_url) ⇒ MovedPermanentlyError

Returns a new instance of MovedPermanentlyError.



23
24
25
26
27
# File 'lib/api/api.rb', line 23

def initialize(location_url)
  @location_url = location_url

  super("#{MSG_PREFIX} #{location_url}")
end

Instance Attribute Details

#location_urlObject (readonly)

Returns the value of attribute location_url.



21
22
23
# File 'lib/api/api.rb', line 21

def location_url
  @location_url
end