Sha256: 0f8e4b853eb2f59757c7c93e3f1a9d9d9b221c003339e54fbd8ec2034cf588e8

Contents?: true

Size: 311 Bytes

Versions: 1

Compression:

Stored size: 311 Bytes

Contents

module WithingsSDK

  # A Response is used to represent an empty API response with a status
  # code and no additional information.
  class Response
    # @return [Integer]
    attr_reader :status

    def initialize(attrs = {})
      @status = attrs['status'].to_i if attrs.has_key? 'status'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
withings-sdk-0.2.1 lib/withings-sdk/response.rb