class Pohoda::Parsers::MKasa::MKasaResponseType

Public Instance Methods

configuration() click to toggle source
# File lib/pohoda/parsers/m_kasa/m_kasa_response_type.rb, line 7
def configuration
  submodel_at(MKasa::ConfigurationType, 'mKasa:configuration')
end
import_response() click to toggle source
# File lib/pohoda/parsers/m_kasa/m_kasa_response_type.rb, line 11
def import_response
  submodel_at(MKasa::ImportResponseType, 'mKasa:importResponse')
end
to_h() click to toggle source
Calls superclass method
# File lib/pohoda/parsers/m_kasa/m_kasa_response_type.rb, line 15
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:configuration] = configuration.to_h if has? 'mKasa:configuration'
  hash[:import_response] = import_response.to_h if has? 'mKasa:importResponse'

  hash
  super.merge(hash)
end