class Pohoda::Builders::MKasa::ImportResponseType
Public Instance Methods
builder()
click to toggle source
# File lib/pohoda/builders/m_kasa/import_response_type.rb, line 7 def builder root = Ox::Element.new(name) root = add_attributes_and_namespaces(root) root << build_element('mKasa:mKasaPackNum', data[:m_kasa_pack_num], data[:m_kasa_pack_num_attributes]) if data.key? :m_kasa_pack_num root << build_element('mKasa:name', data[:name], data[:name_attributes]) if data.key? :name root << build_element('mKasa:deviceGuid', data[:device_guid], data[:device_guid_attributes]) if data.key? :device_guid root end