Method: Foraneus.date

Defined in:
lib/foraneus.rb

.date(name, *args) ⇒ Object

Declares a date field.

Parameters:

  • name (Symbol)

    The name of the field.

  • opts (Hash)


40
41
42
43
# File 'lib/foraneus.rb', line 40

def self.date(name, *args)
  converter = Foraneus::Converters::Date.new(*args)
  field(name, converter)
end