Sha256: fbedcf5457bebbb90fb271f8c0421b61d65d14abe50de6368d78564261686ecb

Contents?: true

Size: 403 Bytes

Versions: 5

Compression:

Stored size: 403 Bytes

Contents

# Represents any Object

require_relative '../exceptions'

module Attributor
  class Object
    include Type

    def self.native_type
      ::BasicObject
    end

    def self.example(_context = nil, options: {})
      'An Object'
    end
        
    def self.json_schema_type
      :object #FIXME: not sure this is the most appropriate, since an Attributor::Object can be anything
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
attributor-6.1 lib/attributor/types/object.rb
attributor-6.0 lib/attributor/types/object.rb
attributor-5.7 lib/attributor/types/object.rb
attributor-5.6 lib/attributor/types/object.rb
attributor-5.5 lib/attributor/types/object.rb