Sha256: e71f12aacea94f84d1ecfa4bcb844ff8336f0e24356bcb684fd76ff1325caa22

Contents?: true

Size: 1.01 KB

Versions: 8

Compression:

Stored size: 1.01 KB

Contents

module Parliament
  module Grom
    module Decorator
      # Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/ProposedNegativeStatutoryInstrumentPaper
      module ProposedNegativeStatutoryInstrumentPaper
        # Alias proposedNegativeStatutoryInstrumentPaperName with fallback.
        #
        # @return [String, String] the name of the Grom::Node or an empty string.
        def name
          respond_to?(:proposedNegativeStatutoryInstrumentPaperName) ? proposedNegativeStatutoryInstrumentPaperName : ''
        end

        # Alias proposedNegativeStatutoryInstrumentPaperPrecedesStatutoryInstrumentPaper with fallback.
        #
        # @return [Array, Array] an array of StatutoryInstrumentPaper Grom::Nodes or an empty array.
        def statutory_instrument_papers
          respond_to?(:proposedNegativeStatutoryInstrumentPaperPrecedesStatutoryInstrumentPaper) ? proposedNegativeStatutoryInstrumentPaperPrecedesStatutoryInstrumentPaper : []
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
parliament-grom-decorators-0.32.1 lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb
parliament-grom-decorators-0.32.0 lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb
parliament-grom-decorators-0.31.1 lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb
parliament-grom-decorators-0.31.0 lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb
parliament-grom-decorators-0.31.0.pre.rc lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb
parliament-grom-decorators-0.30.0 lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb
parliament-grom-decorators-0.29.0 lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb
parliament-grom-decorators-0.27.7 lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb