def attributes!(object, *attrs)
      attrs.each do |attr|
        method_missing attr, object.send(attr)
      end
    end
def attributes!(object, *attrs)
      attrs.each do |attr|
        method_missing attr, object.send(attr)
      end
    end
Adds a new JsonPair for each attribute in attrs by taking attr as key and value of that attribute in object.

 @param object [Object] Object to take values from
 @param *attrs [Array<Symbol>] Array of attributes for JsonPair keys