app/models/manageiq/providers/lenovo/physical_infra_manager/parser/firmware_parser.rb
#
# Parses a firmware into a Hash
#
# @param [Hash] firmware - object containing details for the firmware
#
# @return [Hash] the firmware as required by the application
#
Parses a firmware into a Hash
Parses a firmware into a Hash
def parse_firmware(firmware)
        result = parse(firmware, parent::ParserDictionaryConstants::FIRMWARE)
        result[:name] = "#{firmware["role"]} #{firmware["name"]}-#{firmware["status"]}".strip
        result
      end
def parse_firmware ( firmware ) result = parse ( firmware , parent :: ParserDictionaryConstants :: FIRMWARE ) result [ :name ] = "#{firmware["role"]} #{firmware["name"]}-#{firmware["status"]}" . strip result end
Parses a firmware into a Hash
Parses a firmware into a Hash
the firmware as required by the application
the firmware as required by the application
Hash
firmware
object containing details for the firmware
object containing details for the firmware