Class: Taxii::Messages::FeedInformationRequest

Inherits:
Hashie::Dash
  • Object
show all
Defined in:
lib/taxii/messages/feed_information_request.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



6
7
8
9
10
# File 'lib/taxii/messages/feed_information_request.rb', line 6

def to_h
  Taxii::Messages::NAMESPACE_ATTRIBUTES.merge({
    '@message_id': message_id
  })
end

#to_xmlObject



12
13
14
# File 'lib/taxii/messages/feed_information_request.rb', line 12

def to_xml
  Gyoku.xml({'taxii:Feed_Information_Request/': to_h}, key_converter: :none)
end