Class: GnomeKeyring::Found

Inherits:
Object
  • Object
show all
Defined in:
lib/gir_ffi-gnome_keyring/found.rb

Instance Method Summary collapse

Instance Method Details

#attributesObject



10
11
12
13
# File 'lib/gir_ffi-gnome_keyring/found.rb', line 10

def attributes
  struct = GnomeKeyring::Found::Struct.new(@struct.to_ptr)
  GnomeKeyring::AttributeList.wrap(struct[:attributes])
end

#attributes=(value) ⇒ Object



15
16
17
18
# File 'lib/gir_ffi-gnome_keyring/found.rb', line 15

def attributes=(value)
  struct = GnomeKeyring::Found::Struct.new(@struct.to_ptr)
  struct[:attributes] = GnomeKeyring::AttributeList.from(value)
end