Method: Castkit::Core::AttributeTypes#string

Defined in:
lib/castkit/core/attribute_types.rb

#string(field, **options) ⇒ Object

Defines a string attribute.

Parameters:

  • field (Symbol)
  • options (Hash)


33
34
35
# File 'lib/castkit/core/attribute_types.rb', line 33

def string(field, **options)
  attribute(field, :string, **options)
end