Class: Attributor::Object

Inherits:
Object
  • Object
show all
Includes:
Type
Defined in:
lib/attributor/types/object.rb

Class Method Summary collapse

Class Method Details

.example(_context = nil, options: {}) ⇒ Object



13
14
15
# File 'lib/attributor/types/object.rb', line 13

def self.example(_context = nil, options: {})
  'An Object'
end

.json_schema_typeObject



17
18
19
# File 'lib/attributor/types/object.rb', line 17

def self.json_schema_type
  :object #FIXME: not sure this is the most appropriate, since an Attributor::Object can be anything
end

.native_typeObject



9
10
11
# File 'lib/attributor/types/object.rb', line 9

def self.native_type
  ::BasicObject
end