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

Version Path
parliament-grom-decorators-0.32.1 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.32.0 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.31.1 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.31.0 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.31.0.pre.rc lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.30.0 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.29.0 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.27.7 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.27.6 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.27.5 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.27.4 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.27.3 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.27.2 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.27.1 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.27.0 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.26.0 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.25.1 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.25.0 lib/parliament/grom/decorator/answering_body_allocation.rb
parliament-grom-decorators-0.24.0 lib/parliament/grom/decorator/answering_body_allocation.rb