lib/dynamoid/fields.rb
def write_attribute(name, value)
      if (size = value.to_s.size) > MAX_ITEM_SIZE
        Dynamoid.logger.warn "DynamoDB can't store items larger than #{MAX_ITEM_SIZE} and the #{name} field has a length of #{size}."
      end

      if association = @associations[name]
        association.reset
      end

      attributes[name.to_sym] = value
    end
# Write an attribute on the object. Also marks the previous value as dirty.
#
# @param [Symbol] name the name of the field
# @param [Object] value the value to assign to that field
#
# @since 0.2.0
Write an attribute on the object. Also marks the previous value as dirty.
Write an attribute on the object . Also marks the previous value as dirty .
def write_attribute(name, value)
      if (size = value.to_s.size) > MAX_ITEM_SIZE
        Dynamoid.logger.warn "DynamoDB can't store items larger than #{MAX_ITEM_SIZE} and the #{name} field has a length of #{size}."
      end
      if association = @associations[name]
        association.reset
      end
      attributes[name.to_sym] = value
    end
def write_attribute ( name , value ) if ( size = value . to_s . size ) > MAX_ITEM_SIZE Dynamoid . logger . warn "DynamoDB can't store items larger than #{MAX_ITEM_SIZE} and the #{name} field has a length of #{size}." end if association = @associations [ name ] association . reset end attributes [ name . to_sym ] = value end
Write an attribute on the object.
Write an attribute on the object .
name
value
value the value to assign to that field
value the value to assign to that field
since
None