lib/eco/api/session.rb in eco-helpers-2.0.19 vs lib/eco/api/session.rb in eco-helpers-2.0.21
- old
+ new
@@ -104,14 +104,16 @@
# Allows to use the defined parsers
# @note the use of these method requires to know which is the expected format of `source`
# @param attr [String] type (`Symbol`) or attribute (`String`) to target a specific parser.
# @param source [Any] source value to be parsed.
# @param phase [Symbol] the phase when this parser should be active.
- def parse_attribute(attr, source, phase = :internal)
+ # @param phase [Symbol] the phase when this parser should be active.
+ # @return [Object] the parsed attribute.
+ def parse_attribute(attr, source, phase = :internal, deps: {})
unless parsers = entry_factory.person_parser
raise "There are no parsers defined"
end
- parsers.parse(attr, source, phase)
+ parsers.parse(attr, source, phase, deps: deps)
end
# @see Eco::API::Common::People::EntryFactory#export
# @param (see Eco::API::Common::People::EntryFactory#export)
def export(*args)