lib/withings-sdk/client.rb
def weight(user_id, options = {})
      groups = body_measurements(user_id, options)
      groups.map do |group|
        group.measures.select { |m| m.is_a? WithingsSDK::Measure::Weight }.map do |m|
          WithingsSDK::Measure::Weight.new(m.attrs.merge('weighed_at' => group.date))
        end
      end.flatten
    end
def weight(user_id, options = {})
      groups = body_measurements(user_id, options)
      groups.map do |group|
        group.measures.select { |m| m.is_a? WithingsSDK::Measure::Weight }.map do |m|
          WithingsSDK::Measure::Weight.new(m.attrs.merge('weighed_at' => group.date))
        end
      end.flatten
    end
Return a list of weight body measurements

 @param user_id [Integer]
 @param options [Hash]

 @return [Array<WithingsSDK::Measure::Weight>]