Module: Dcc::Base::Software
- Included in:
- V2::Software, V3::Software
- Defined in:
- lib/dcc/base/software.rb
Overview
dcc:softwareType — name + release + optional type enum + description.
v3.4 adds the type enum (application/bios/driver/editor/firmware/
library/os/other).
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/dcc/base/software.rb', line 9 def self.included(klass) klass.class_eval do attribute :id, :string attribute :ref_id, :string attribute :ref_type, :string attribute :name, :text attribute :release, :string attribute :type, :string attribute :description, :richContent xml do namespace ::Dcc::Namespace::Dcc element "software" 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 "release", to: :release map_element "type", to: :type map_element "description", to: :description end end end |