Class: Secret::Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/libsecret/schema.rb

Instance Method Summary collapse

Instance Method Details

#attributesObject



20
21
22
23
24
25
26
27
28
# File 'lib/libsecret/schema.rb', line 20

def attributes
  attrs = {}
  attributes_raw.each do |attribute|
    name = attribute.name
    break if name.nil?
    attrs[name] = attribute.type
  end
  attrs
end

#attributes_rawObject



19
# File 'lib/libsecret/schema.rb', line 19

alias_method :attributes_raw, :attributes