Module: Parliament::Grom::Decorator::ProposedNegativeStatutoryInstrumentPaper

Defined in:
lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb

Overview

Decorator namespace for Grom::Node instances with type: id.parliament.uk/schema/ProposedNegativeStatutoryInstrumentPaper

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#nameString

Alias proposedNegativeStatutoryInstrumentPaperName with fallback.

Returns:

  • (String, String)

    the name of the Grom::Node or an empty string.

Since:

  • 0.1.0



9
10
11
# File 'lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb', line 9

def name
  respond_to?(:proposedNegativeStatutoryInstrumentPaperName) ? proposedNegativeStatutoryInstrumentPaperName : ''
end

#statutory_instrument_papersArray

Alias proposedNegativeStatutoryInstrumentPaperPrecedesStatutoryInstrumentPaper with fallback.

Returns:

  • (Array, Array)

    an array of StatutoryInstrumentPaper Grom::Nodes or an empty array.

Since:

  • 0.1.0



16
17
18
# File 'lib/parliament/grom/decorator/proposed_negative_statutory_instrument_paper.rb', line 16

def statutory_instrument_papers
  respond_to?(:proposedNegativeStatutoryInstrumentPaperPrecedesStatutoryInstrumentPaper) ? proposedNegativeStatutoryInstrumentPaperPrecedesStatutoryInstrumentPaper : []
end