lib/dynamoid/fields.rb
# Specify a field for a document.
#
# Its type determines how it is coerced when read in and out of the datastore.
# You can specify :integer, :number, :set, :array, :datetime, and :serialized,
# or specify a class that defines a serialization strategy.
#
# If you specify a class for field type, Dynamoid will serialize using
# `dynamoid_dump` or `dump` methods, and load using `dynamoid_load` or `load` methods.
#
# Default field type is :string.
#
# @param [Symbol] name the name of the field
# @param [Symbol] type the type of the field (refer to method description for details)
# @param [Hash] options any additional options for the field
#
# @since 0.2.0
Specify a field for a document.
Its type determines how it is coerced when read in and out of the datastore.



Default field type is :string.
Specify a field for a document . Its type determines how it is coerced when read in and out of the datastore . Default field type is : string .
def remove_field(field)
        field = field.to_sym
        attributes.delete(field) or raise "No such field"
        remove_method field
        remove_method :"#{field}="
        remove_method :"#{field}?"
      end
def remove_field ( field ) field = field . to_sym attributes . delete ( field ) or raise "No such field" remove_method field remove_method :" #{ field } = " remove_method :" #{ field } ? " end
Specify a field for a document.
Specify a field for a document .
field
options any additional options for the field
options any additional options for the field
since
None