Exception: API::API::MovedPermanentlyError
- Inherits:
-
StandardError
- Object
- StandardError
- API::API::MovedPermanentlyError
- Defined in:
- lib/api/api.rb
Constant Summary collapse
- MSG_PREFIX =
'This resource has been moved permanently to'
Instance Attribute Summary collapse
-
#location_url ⇒ Object
readonly
Returns the value of attribute location_url.
Instance Method Summary collapse
-
#initialize(location_url) ⇒ MovedPermanentlyError
constructor
A new instance of MovedPermanentlyError.
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_url ⇒ Object (readonly)
Returns the value of attribute location_url.
21 22 23 |
# File 'lib/api/api.rb', line 21 def location_url @location_url end |