Sha256: c566a1266811366b6ebd847e278c1b8ce958cb77ebe9e61d346ab8e89f7dcea6

Contents?: true

Size: 643 Bytes

Versions: 6

Compression:

Stored size: 643 Bytes

Contents

# frozen_string_literal: true

require_relative './convertors'

module Workato
  module Connector
    module Sdk
      class Schema
        module Field
          class DateTime < SimpleDelegator
            include Convertors

            DEFAULT_ATTRIBUTES = {
              type: 'date_time',
              control_type: 'date_time',
              render_input: 'date_time_conversion',
              parse_output: 'date_time_conversion'
            }.with_indifferent_access.freeze

            def initialize(field)
              super(DEFAULT_ATTRIBUTES.merge(field))
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workato-connector-sdk-1.0.1 lib/workato/connector/sdk/schema/field/date_time.rb
workato-connector-sdk-1.0.0 lib/workato/connector/sdk/schema/field/date_time.rb
workato-connector-sdk-0.5.0 lib/workato/connector/sdk/schema/field/date_time.rb
workato-connector-sdk-0.4.1 lib/workato/connector/sdk/schema/field/date_time.rb
workato-connector-sdk-0.4.0 lib/workato/connector/sdk/schema/field/date_time.rb
workato-connector-sdk-0.3.0 lib/workato/connector/sdk/schema/field/date_time.rb