Class: Field::Types::DateTime

Inherits:
Base
  • Object
show all
Defined in:
lib/field/types/date_time.rb

Instance Attribute Summary

Attributes inherited from Base

#name, #translated, #type

Instance Method Summary collapse

Methods inherited from Base

fetch, #json_schema_pattern, supported_types

Instance Method Details

#json_schema_formatObject



8
9
10
# File 'lib/field/types/date_time.rb', line 8

def json_schema_format
  'date-time'
end

#json_schema_typeObject



4
5
6
# File 'lib/field/types/date_time.rb', line 4

def json_schema_type
  :string
end

#swagger_typeObject



12
13
14
# File 'lib/field/types/date_time.rb', line 12

def swagger_type
  :DateTime
end