Exception: ChannelAdvisor::HTTPError
- Defined in:
- lib/channeladvisor/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(error_obj) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(error_obj) ⇒ HTTPError
Returns a new instance of HTTPError.
19 20 21 22 23 24 25 |
# File 'lib/channeladvisor/error.rb', line 19 def initialize(error_obj) error = error_obj.to_hash @code = error[:code] = "Failed with HTTP error #{@code}" super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
17 18 19 |
# File 'lib/channeladvisor/error.rb', line 17 def code @code end |