Class: EasyTalk::Builders::DatetimeBuilder

Inherits:
StringBuilder show all
Defined in:
lib/easy_talk/builders/datetime_builder.rb

Overview

Builder class for datetime properties.

Constant Summary

Constants inherited from StringBuilder

StringBuilder::VALID_OPTIONS

Constants inherited from BaseBuilder

BaseBuilder::COMMON_OPTIONS

Instance Attribute Summary

Attributes inherited from BaseBuilder

#name, #options

Instance Method Summary collapse

Methods inherited from StringBuilder

#initialize

Methods inherited from BaseBuilder

#build, collection_type?, #initialize

Constructor Details

This class inherits a constructor from EasyTalk::Builders::StringBuilder

Instance Method Details

#schemaObject



11
12
13
14
15
# File 'lib/easy_talk/builders/datetime_builder.rb', line 11

def schema
  super.tap do |schema|
    schema[:format] = 'date-time'
  end
end