class Pohoda::Parsers::MKasa::ExportRequestType

Public Instance Methods

agenda() click to toggle source
# File lib/pohoda/parsers/m_kasa/export_request_type.rb, line 31
def agenda
  at 'mKasa:agenda'
end
agenda_attributes() click to toggle source
# File lib/pohoda/parsers/m_kasa/export_request_type.rb, line 35
def agenda_attributes
  attributes_at 'mKasa:agenda'
end
device_guid() click to toggle source
# File lib/pohoda/parsers/m_kasa/export_request_type.rb, line 15
def device_guid
  at 'mKasa:deviceGuid'
end
device_guid_attributes() click to toggle source
# File lib/pohoda/parsers/m_kasa/export_request_type.rb, line 19
def device_guid_attributes
  attributes_at 'mKasa:deviceGuid'
end
my_last_id() click to toggle source
# File lib/pohoda/parsers/m_kasa/export_request_type.rb, line 39
def my_last_id
  at 'mKasa:myLastId'
end
my_last_id_attributes() click to toggle source
# File lib/pohoda/parsers/m_kasa/export_request_type.rb, line 43
def my_last_id_attributes
  attributes_at 'mKasa:myLastId'
end
name() click to toggle source
# File lib/pohoda/parsers/m_kasa/export_request_type.rb, line 7
def name
  at 'mKasa:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/m_kasa/export_request_type.rb, line 11
def name_attributes
  attributes_at 'mKasa:name'
end
overwrite_device_guid() click to toggle source
# File lib/pohoda/parsers/m_kasa/export_request_type.rb, line 23
def overwrite_device_guid
  at 'mKasa:overwriteDeviceGuid'
end
overwrite_device_guid_attributes() click to toggle source
# File lib/pohoda/parsers/m_kasa/export_request_type.rb, line 27
def overwrite_device_guid_attributes
  attributes_at 'mKasa:overwriteDeviceGuid'
end
to_h() click to toggle source
# File lib/pohoda/parsers/m_kasa/export_request_type.rb, line 47
def to_h
  hash = {}
  hash[:attributes] = attributes

  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[:overwrite_device_guid] = overwrite_device_guid if has? 'mKasa:overwriteDeviceGuid'
  hash[:overwrite_device_guid_attributes] = overwrite_device_guid_attributes if has? 'mKasa:overwriteDeviceGuid'
  hash[:agenda] = agenda if has? 'mKasa:agenda'
  hash[:agenda_attributes] = agenda_attributes if has? 'mKasa:agenda'
  hash[:my_last_id] = my_last_id if has? 'mKasa:myLastId'
  hash[:my_last_id_attributes] = my_last_id_attributes if has? 'mKasa:myLastId'

  hash
end