Module: DataMapper::Model::Property

Module | DataMapper::Model::Property
In: | lib/dm-core/model/property.rb

### Methods

extended field_naming_convention inherited key key_conditions paranoid_properties properties properties_with_subclasses property serial set_paranoid_property

### Public Class methods

extended(model)

### Public Instance methods

field_naming_convention(repository_name = default_storage_name)

Gets the field naming conventions for this resource in the given Repository

@param [String, Symbol] repository_name

      the name of the Repository for which the field naming convention
      will be retrieved

@return [call]

      The naming convention for the given Repository

@api public

inherited(model)
key(repository_name = default_repository_name)

Gets the list of key fields for this Model in `repository_name`

@param [String] repository_name

      The name of the Repository for which the key is to be reported

@return [Array]

      The list of key fields for this Model in +repository_name+

@api public

key_conditions(repository, key)

TODO: document @api private

paranoid_properties()

TODO: document @api private

properties(repository_name = default_repository_name)

Gets a list of all properties that have been defined on this Model in the requested repository

@param [Symbol, String] repository_name

      The name of the repository to use. Uses the default Repository
      if none is specified.

@return [Array]

      A list of Properties defined on this Model in the given Repository

@api public

properties_with_subclasses(repository_name = default_repository_name)

TODO: document @api private

property(name, type, options = {})

Defines a Property on the Resource

@param [Symbol] name

      the name for which to call this property

@param [Type] type

      the type to define this property ass

@param [Hash(Symbol => String)] options

      a hash of available options

@return [Property]

      the created Property

@see Property

@api public

serial(repository_name = default_repository_name)

TODO: document @api public

set_paranoid_property(name, &block)

TODO: document @api private

[Validate]