Class: AppInfo::PE::VersionInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/app_info/pe.rb

Overview

VersionInfo class

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ VersionInfo

Returns a new instance of VersionInfo.



231
232
233
# File 'lib/app_info/pe.rb', line 231

def initialize(raw)
  @raw = raw
end

Instance Method Details

#assembly_versionString

Returns:

  • (String)


251
252
253
# File 'lib/app_info/pe.rb', line 251

def assembly_version
  @assembly_version ||= value_of('Assembly Version')
end

#company_nameString

Returns:

  • (String)


236
237
238
# File 'lib/app_info/pe.rb', line 236

def company_name
  @company_name ||= value_of('CompanyName')
end

Returns:

  • (String)


291
292
293
# File 'lib/app_info/pe.rb', line 291

def copyright
  @copyright ||= value_of('LegalCopyright')
end

#file_descriptionString?

Returns:

  • (String, nil)


261
262
263
# File 'lib/app_info/pe.rb', line 261

def file_description
  @file_description ||= value_of('FileDescription')
end

#file_versionString

Returns:

  • (String)


256
257
258
# File 'lib/app_info/pe.rb', line 256

def file_version
  @file_version ||= value_of('FileVersion')
end

#internal_nameString

Returns:

  • (String)


281
282
283
# File 'lib/app_info/pe.rb', line 281

def internal_name
  @internal_name ||= value_of('InternalName')
end

Returns:

  • (String)


286
287
288
# File 'lib/app_info/pe.rb', line 286

def legal_trademarks
  @legal_trademarks ||= value_of('LegalTrademarks')
end

#original_filenameString

Returns:

  • (String)


276
277
278
# File 'lib/app_info/pe.rb', line 276

def original_filename
  @original_filename ||= value_of('OriginalFilename')
end

#private_buildString?

Returns:

  • (String, nil)


271
272
273
# File 'lib/app_info/pe.rb', line 271

def private_build
  @private_build ||= value_of('PrivateBuild')
end

#product_nameString

Returns:

  • (String)


241
242
243
# File 'lib/app_info/pe.rb', line 241

def product_name
  @product_name ||= value_of('ProductName')
end

#product_versionString

Returns:

  • (String)


246
247
248
# File 'lib/app_info/pe.rb', line 246

def product_version
  @product_version ||= value_of('ProductVersion')
end

#special_buildString?

Returns:

  • (String, nil)


266
267
268
# File 'lib/app_info/pe.rb', line 266

def special_build
  @special_build ||= value_of('SpecialBuild')
end