Class: Taxii::Messages::DiscoveryRequest
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- Taxii::Messages::DiscoveryRequest
- Defined in:
- lib/taxii/messages/discovery_request.rb
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
6 7 8 9 10 |
# File 'lib/taxii/messages/discovery_request.rb', line 6 def to_h Taxii::Messages::NAMESPACE_ATTRIBUTES.merge({ '@message_id': }) end |
#to_xml ⇒ Object
12 13 14 |
# File 'lib/taxii/messages/discovery_request.rb', line 12 def to_xml Gyoku.xml({'taxii_11:Discovery_Request/': to_h}, key_converter: :none) end |