Class: GPGME::EngineInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/gpgme/misc.rb,
lib/gpgme/ffi/engine_info.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#file_nameObject (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_dirObject (readonly)

Returns the value of attribute home_dir.



5
6
7
# File 'lib/gpgme/misc.rb', line 5

def home_dir
  @home_dir
end

#protocolObject (readonly)

Returns the value of attribute protocol.



5
6
7
# File 'lib/gpgme/misc.rb', line 5

def protocol
  @protocol
end

#req_versionObject (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

#versionObject (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