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.
-
#coming_into_force_note ⇒ String
Alias statutoryInstrumentPaperComingIntoForceNote with fallback.
-
#made_date ⇒ Date?
Alias statutoryInstrumentPaperMadeDate with fallback.
-
#name ⇒ String
Alias statutoryInstrumentPaperName with fallback.
-
#number ⇒ String
Alias statutoryInstrumentPaperNumber with fallback.
-
#prefix ⇒ String
Alias statutoryInstrumentPaperPrefix with fallback.
-
#proposed_negative_statutory_instrument_papers ⇒ Array
Alias statutoryInstrumentPaperFollowsProposedNegativeStatutoryInstrumentPaper with fallback.
-
#year ⇒ String
Alias statutoryInstrumentPaperYear with fallback.
Instance Method Details
#coming_into_force_date ⇒ Date?
Alias Date with fallback.
51 52 53 |
# File 'lib/parliament/grom/decorator/statutory_instrument_paper.rb', line 51 def coming_into_force_date respond_to?(:statutoryInstrumentPaperComingIntoForceDate) ? DateTime.parse(statutoryInstrumentPaperComingIntoForceDate) : nil end |
#coming_into_force_note ⇒ String
Alias statutoryInstrumentPaperComingIntoForceNote with fallback.
44 45 46 |
# File 'lib/parliament/grom/decorator/statutory_instrument_paper.rb', line 44 def coming_into_force_note respond_to?(:statutoryInstrumentPaperComingIntoForceNote) ? statutoryInstrumentPaperComingIntoForceNote : '' end |
#made_date ⇒ Date?
Alias statutoryInstrumentPaperMadeDate with fallback.
37 38 39 |
# File 'lib/parliament/grom/decorator/statutory_instrument_paper.rb', line 37 def made_date respond_to?(:statutoryInstrumentPaperMadeDate) ? DateTime.parse(statutoryInstrumentPaperMadeDate) : nil end |
#name ⇒ String
Alias statutoryInstrumentPaperName with fallback.
9 10 11 |
# File 'lib/parliament/grom/decorator/statutory_instrument_paper.rb', line 9 def name respond_to?(:statutoryInstrumentPaperName) ? statutoryInstrumentPaperName : '' end |
#number ⇒ String
Alias statutoryInstrumentPaperNumber with fallback.
30 31 32 |
# File 'lib/parliament/grom/decorator/statutory_instrument_paper.rb', line 30 def number respond_to?(:statutoryInstrumentPaperNumber) ? statutoryInstrumentPaperNumber : '' end |
#prefix ⇒ String
Alias statutoryInstrumentPaperPrefix with fallback.
16 17 18 |
# File 'lib/parliament/grom/decorator/statutory_instrument_paper.rb', line 16 def prefix respond_to?(:statutoryInstrumentPaperPrefix) ? statutoryInstrumentPaperPrefix : '' end |
#proposed_negative_statutory_instrument_papers ⇒ Array
Alias statutoryInstrumentPaperFollowsProposedNegativeStatutoryInstrumentPaper with fallback.
58 59 60 |
# File 'lib/parliament/grom/decorator/statutory_instrument_paper.rb', line 58 def proposed_negative_statutory_instrument_papers respond_to?(:statutoryInstrumentPaperFollowsProposedNegativeStatutoryInstrumentPaper) ? statutoryInstrumentPaperFollowsProposedNegativeStatutoryInstrumentPaper : [] end |
#year ⇒ String
Alias statutoryInstrumentPaperYear with fallback.
23 24 25 |
# File 'lib/parliament/grom/decorator/statutory_instrument_paper.rb', line 23 def year respond_to?(:statutoryInstrumentPaperYear) ? statutoryInstrumentPaperYear : '' end |