Module: Parliament::Grom::Decorator::Laying
- Defined in:
- lib/parliament/grom/decorator/laying.rb
Overview
Decorator namespace for Grom::Node instances with type: id.parliament.uk/schema/Laying
Instance Method Summary collapse
-
#body ⇒ Grom::Node?
Alias layingHasLayingBody with fallback.
-
#date ⇒ Date?
Alias layingDate with fallback.
-
#laid_thing ⇒ Grom::Node?
Alias layingHasLaidThing with fallback.
-
#person ⇒ Grom::Node?
Alias layingHasLayingPerson with fallback.
-
#procedure_step ⇒ Grom::Node?
Alias businessItemHasProcedureStep with fallback.
Instance Method Details
#body ⇒ Grom::Node?
Alias layingHasLayingBody with fallback.
16 17 18 19 20 21 |
# File 'lib/parliament/grom/decorator/laying.rb', line 16 def body return @body if @body return nil unless respond_to?(:layingHasLayingBody) @body = Helpers::Utils.type_safe_first(, Parliament::Grom::Decorator::Group) end |
#date ⇒ Date?
Alias layingDate with fallback.
9 10 11 |
# File 'lib/parliament/grom/decorator/laying.rb', line 9 def date respond_to?(:layingDate) ? DateTime.parse() : nil end |
#laid_thing ⇒ Grom::Node?
Alias layingHasLaidThing with fallback.
46 47 48 49 50 51 |
# File 'lib/parliament/grom/decorator/laying.rb', line 46 def laid_thing return @laid_thing if @laid_thing return nil unless respond_to?(:layingHasLaidThing) @laid_thing = Helpers::Utils.type_safe_first(, Parliament::Grom::Decorator::LaidThing) end |
#person ⇒ Grom::Node?
Alias layingHasLayingPerson with fallback.
36 37 38 39 40 41 |
# File 'lib/parliament/grom/decorator/laying.rb', line 36 def person return @person if @person return nil unless respond_to?(:layingHasLayingPerson) @person = Helpers::Utils.type_safe_first(, Parliament::Grom::Decorator::Person) end |
#procedure_step ⇒ Grom::Node?
Alias businessItemHasProcedureStep with fallback.
26 27 28 29 30 31 |
# File 'lib/parliament/grom/decorator/laying.rb', line 26 def procedure_step return @procedure_step if @procedure_step return nil unless respond_to?(:businessItemHasProcedureStep) @procedure_step = Helpers::Utils.type_safe_first(businessItemHasProcedureStep, Parliament::Grom::Decorator::ProcedureStep) end |