Exception: EC2::Common::HTTP::Error::Redirect
- Inherits:
-
EC2::Common::HTTP::Error
- Object
- RuntimeError
- EC2::Common::HTTP::Error
- EC2::Common::HTTP::Error::Redirect
- Defined in:
- lib/ec2/common/http.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
Instance Method Summary collapse
-
#initialize(code, endpoint) ⇒ Redirect
constructor
A new instance of Redirect.
Constructor Details
#initialize(code, endpoint) ⇒ Redirect
Returns a new instance of Redirect.
61 62 63 64 65 |
# File 'lib/ec2/common/http.rb', line 61 def initialize(code, endpoint) super("Redirected (#{code}) to new endpoint: #{endpoint}") @code = code @endpoint = endpoint end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
60 61 62 |
# File 'lib/ec2/common/http.rb', line 60 def code @code end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
60 61 62 |
# File 'lib/ec2/common/http.rb', line 60 def endpoint @endpoint end |