Sha256: 00a63bdc0f85c4451a3f5cb294ac4b10028fc19c5310471d45546d96c39a3463
Contents?: true
Size: 1.3 KB
Versions: 7
Compression:
Stored size: 1.3 KB
Contents
module Parliament module Grom module Decorator # Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/StatutoryInstrumentPaper module StatutoryInstrumentPaper # Alias statutoryInstrumentPaperMadeDate with fallback. # # @return [Date, nil] the coming into force date of the Grom::Node or nil. def made_date respond_to?(:statutoryInstrumentPaperMadeDate) ? DateTime.parse(statutoryInstrumentPaperMadeDate) : nil end # Alias Date with fallback. # # @return [Date, nil] the coming into force date of the Grom::Node or nil. def coming_into_force_date respond_to?(:statutoryInstrumentPaperComingIntoForceDate) ? DateTime.parse(statutoryInstrumentPaperComingIntoForceDate) : nil end # Alias statutoryInstrumentPaperFollowsProposedNegativeStatutoryInstrumentPaper with fallback. # # @return [Array, Array] an array of ProposedNegativeStatutoryInstrumentPaper Grom::Nodes or an empty array. def proposed_negative_statutory_instrument_papers respond_to?(:statutoryInstrumentPaperFollowsProposedNegativeStatutoryInstrumentPaper) ? statutoryInstrumentPaperFollowsProposedNegativeStatutoryInstrumentPaper : [] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems