Exception: Withings::Api::HttpNotSuccessError

Inherits:
Error
  • Object
show all
Defined in:
lib/withings-api/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



12
13
14
# File 'lib/withings-api/errors.rb', line 12

def body
  @body
end

#codeObject

Returns the value of attribute code.



12
13
14
# File 'lib/withings-api/errors.rb', line 12

def code
  @code
end