Class: GPGME::EngineInfo
- Inherits:
-
Object
- Object
- GPGME::EngineInfo
- Defined in:
- lib/gpgme/misc.rb,
lib/gpgme/ffi/engine_info.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#home_dir ⇒ Object
readonly
Returns the value of attribute home_dir.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
-
#req_version ⇒ Object
(also: #required_version)
readonly
Returns the value of attribute req_version.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Attribute Details
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
5 6 7 |
# File 'lib/gpgme/misc.rb', line 5 def file_name @file_name end |
#home_dir ⇒ Object (readonly)
Returns the value of attribute home_dir.
5 6 7 |
# File 'lib/gpgme/misc.rb', line 5 def home_dir @home_dir end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
5 6 7 |
# File 'lib/gpgme/misc.rb', line 5 def protocol @protocol end |
#req_version ⇒ Object (readonly) Also known as: required_version
Returns the value of attribute req_version.
5 6 7 |
# File 'lib/gpgme/misc.rb', line 5 def req_version @req_version end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/gpgme/misc.rb', line 5 def version @version end |
Class Method Details
.new_from_struct(info) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/gpgme/ffi/engine_info.rb', line 3 def self.new_from_struct(info) instance = allocate instance.instance_exec do @protocol = info[:protocol] @file_name = info[:file_name] @version = info[:version] @req_version = info[:req_version] @home_dir = info[:home_dir] end instance end |