class Pohoda::Parsers::MKasa::ImportResponseType

Public Instance Methods

device_guid() click to toggle source
# File lib/pohoda/parsers/m_kasa/import_response_type.rb, line 23
def device_guid
  at 'mKasa:deviceGuid'
end
device_guid_attributes() click to toggle source
# File lib/pohoda/parsers/m_kasa/import_response_type.rb, line 27
def device_guid_attributes
  attributes_at 'mKasa:deviceGuid'
end
m_kasa_pack_num() click to toggle source
# File lib/pohoda/parsers/m_kasa/import_response_type.rb, line 7
def m_kasa_pack_num
  at 'mKasa:mKasaPackNum'
end
m_kasa_pack_num_attributes() click to toggle source
# File lib/pohoda/parsers/m_kasa/import_response_type.rb, line 11
def m_kasa_pack_num_attributes
  attributes_at 'mKasa:mKasaPackNum'
end
name() click to toggle source
# File lib/pohoda/parsers/m_kasa/import_response_type.rb, line 15
def name
  at 'mKasa:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/m_kasa/import_response_type.rb, line 19
def name_attributes
  attributes_at 'mKasa:name'
end
to_h() click to toggle source
# File lib/pohoda/parsers/m_kasa/import_response_type.rb, line 31
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:m_kasa_pack_num] = m_kasa_pack_num if has? 'mKasa:mKasaPackNum'
  hash[:m_kasa_pack_num_attributes] = m_kasa_pack_num_attributes if has? 'mKasa:mKasaPackNum'
  hash[:name] = name if has? 'mKasa:name'
  hash[:name_attributes] = name_attributes if has? 'mKasa:name'
  hash[:device_guid] = device_guid if has? 'mKasa:deviceGuid'
  hash[:device_guid_attributes] = device_guid_attributes if has? 'mKasa:deviceGuid'

  hash
end