class ROM::Elasticsearch::Schema
Elasticsearch
relation schema
@api public
Public Instance Methods
to_output_hash()
click to toggle source
Customized output hash constructor which symbolizes keys and optionally applies custom read-type coercions
@api private
# File lib/rom/elasticsearch/schema.rb, line 23 def to_output_hash Types::Hash .schema(map { |attr| [attr.key, attr.to_read_type] }.to_h) .with_key_transform(&:to_sym) end
to_properties()
click to toggle source
Return a hash with mapping properties
@api private
# File lib/rom/elasticsearch/schema.rb, line 15 def to_properties select(&:properties?).map { |attr| [attr.name, attr.properties] }.to_h end