lib/rixml.rb in rixml-0.6.1 vs lib/rixml.rb in rixml-0.6.2

- old
+ new

@@ -111,11 +111,10 @@ def resource_length(resource) length = resource&.dig('Length') return length.to_i if length.respond_to?(:to_i) end - # rubocop:disable Metrics/MethodLength def parse_info_from_author(author) person = author&.dig('Person') { primary: primary?(author.dig('primaryIndicator')), name: person['DisplayName'], @@ -125,10 +124,9 @@ job_title: person['JobTitle'], email: person['ContactInfo']&.dig('Email')&.downcase, # TODO: Remove: Use email from contacts contacts: parse_author_contacts(person['ContactInfo']), } end - # rubocop:enable Metrics/MethodLength def primary?(primary_indicator) primary_indicator == 'Yes' end