class ROM::HTTP::Schema
Public Instance Methods
finalize_associations!(relations:)
click to toggle source
Internal hook used during setup process
@see Schema#finalize_associations!
@api private
Calls superclass method
# File lib/rom/http/schema.rb, line 31 def finalize_associations!(relations:) super do associations.map do |definition| HTTP::Associations.const_get(definition.type).new(definition, relations) end end end
qualified()
click to toggle source
To maintain compatibility with other adapters
@api private
# File lib/rom/http/schema.rb, line 22 def qualified self end
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/http/schema.rb, line 13 def to_output_hash Types::Hash .schema(map { |attr| [attr.key, attr.to_read_type] }.to_h) .with_key_transform(&:to_sym) end