class Schemas::Fields::MergedNamedFields
Public Class Methods
new(named_fields)
click to toggle source
# File lib/schemas/fields/merged_named_fields.rb, line 4 def initialize(named_fields) @named_fields = named_fields end
Public Instance Methods
errors(input_hash)
click to toggle source
# File lib/schemas/fields/merged_named_fields.rb, line 8 def errors(input_hash) @named_fields.map {|nv| nv.errors(input_hash)}.reduce({}, :merge) end
parse(input_hash)
click to toggle source
# File lib/schemas/fields/merged_named_fields.rb, line 12 def parse(input_hash) @named_fields.map {|nv| nv.parse(input_hash)}.reduce({}, :merge) end