Sha256: 57ccf92cdb694cf796414bb763e37958d3e74d5dd2b0cdfae58a5cc8f4a083ad
Contents?: true
Size: 558 Bytes
Versions: 19
Compression:
Stored size: 558 Bytes
Contents
module Parliament module Grom module Decorator # Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/AnsweringBodyAllocation. module AnsweringBodyAllocation # Alias answeringBodyAllocationHasAnsweringBody with fallback. # # @return [Grom::Node, nil] the answering_body of the Grom::Node or nil. def answering_body respond_to?(:answeringBodyAllocationHasAnsweringBody) ? answeringBodyAllocationHasAnsweringBody.first : nil end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems