Class: Trax::Core::Types::Boolean

Inherits:
ValueObject show all
Defined in:
lib/trax/core/types/boolean.rb

Class Method Summary collapse

Methods inherited from ValueObject

#__getobj__, #initialize, #nil?, symbolic_name, to_sym

Constructor Details

This class inherits a constructor from Trax::Core::Types::ValueObject

Class Method Details

.to_schemaObject



9
10
11
12
13
# File 'lib/trax/core/types/boolean.rb', line 9

def self.to_schema
  result = super
  result[:values] = [true, false]
  result
end

.typeObject



5
6
7
# File 'lib/trax/core/types/boolean.rb', line 5

def self.type
  :boolean
end