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

Methods

Public Class methods

Public Instance methods

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

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

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

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

[Validate]