Module: Parliament::Grom::Decorator::StatutoryInstrumentPaper
- Defined in:
- lib/parliament/grom/decorator/statutory_instrument_paper.rb
Overview
Decorator namespace for Grom::Node instances with type: id.parliament.uk/schema/StatutoryInstrumentPaper
Instance Method Summary collapse
-
#coming_into_force_date ⇒ Date?
Alias Date with fallback.
-
#made_date ⇒ Date?
Alias statutoryInstrumentPaperMadeDate with fallback.
-
#proposed_negative_statutory_instrument_papers ⇒ Array
Alias statutoryInstrumentPaperFollowsProposedNegativeStatutoryInstrumentPaper with fallback.
Instance Method Details
#coming_into_force_date ⇒ Date?
Alias Date with fallback.
16 17 18 |
# File 'lib/parliament/grom/decorator/statutory_instrument_paper.rb', line 16 def coming_into_force_date respond_to?(:statutoryInstrumentPaperComingIntoForceDate) ? DateTime.parse(statutoryInstrumentPaperComingIntoForceDate) : nil end |
#made_date ⇒ Date?
Alias statutoryInstrumentPaperMadeDate with fallback.
9 10 11 |
# File 'lib/parliament/grom/decorator/statutory_instrument_paper.rb', line 9 def made_date respond_to?(:statutoryInstrumentPaperMadeDate) ? DateTime.parse(statutoryInstrumentPaperMadeDate) : nil end |
#proposed_negative_statutory_instrument_papers ⇒ Array
Alias statutoryInstrumentPaperFollowsProposedNegativeStatutoryInstrumentPaper with fallback.
23 24 25 |
# File 'lib/parliament/grom/decorator/statutory_instrument_paper.rb', line 23 def proposed_negative_statutory_instrument_papers respond_to?(:statutoryInstrumentPaperFollowsProposedNegativeStatutoryInstrumentPaper) ? statutoryInstrumentPaperFollowsProposedNegativeStatutoryInstrumentPaper : [] end |