Exception: Withings::Api::HttpNotSuccessError
- Defined in:
- lib/withings-api/errors.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, body = "") ⇒ HttpNotSuccessError
constructor
A new instance of HttpNotSuccessError.
Constructor Details
#initialize(code, body = "") ⇒ HttpNotSuccessError
Returns a new instance of HttpNotSuccessError.
14 15 16 17 18 19 |
# File 'lib/withings-api/errors.rb', line 14 def initialize(code, body = "") super(code) @code = code @body = body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
12 13 14 |
# File 'lib/withings-api/errors.rb', line 12 def body @body end |
#code ⇒ Object
Returns the value of attribute code.
12 13 14 |
# File 'lib/withings-api/errors.rb', line 12 def code @code end |