Module: Dcc::Base::MeasuringEquipmentList
- Included in:
- V2::MeasuringEquipmentList, V3::MeasuringEquipmentList
- Defined in:
- lib/dcc/base/measuring_equipment_list.rb
Overview
dcc:measuringEquipmentListType — container of measuring equipment
plus shared name/equipmentClass/description/owner/identifications.
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/dcc/base/measuring_equipment_list.rb', line 8 def self.included(klass) klass.class_eval do attribute :id, :string attribute :ref_id, :string attribute :ref_type, :string attribute :name, :text attribute :equipment_class, :equipmentClass, collection: true attribute :description, :richContent attribute :owner, :contact attribute :identifications, :identifications attribute :measuring_equipment, :measuringEquipment, collection: true xml do namespace ::Dcc::Namespace::Dcc element "measuringEquipments" ordered map_attribute "id", to: :id map_attribute "refId", to: :ref_id map_attribute "refType", to: :ref_type map_element "name", to: :name map_element "equipmentClass", to: :equipment_class map_element "description", to: :description map_element "owner", to: :owner map_element "identifications", to: :identifications map_element "measuringEquipment", to: :measuring_equipment end end end |