Method: Dina::ProtocolData#add_data_element
- Defined in:
- lib/dina/components/protocol_data.rb
#add_data_element(element:) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/dina/components/protocol_data.rb', line 11 def add_data_element(element:) if !element.instance_of?(ProtocolDataElement) raise PropertyValueInvalid, "Data Element must be a ProtocolDataElement." end @protocolDataElement << element.to_hash end |