class PKCS11::CStruct
Base class of all PKCS#11 structs.
Public Instance Methods
inspect()
click to toggle source
# File lib/pkcs11/extensions.rb, line 38 def inspect "#<#{self.class} #{to_hash.map{|k,v| "#{k}=#{v.inspect}"}.join(", ") }>" end
to_hash()
click to toggle source
@return [Hash] with attribute names and current values
# File lib/pkcs11/extensions.rb, line 35 def to_hash members.inject({}){|h,v| h[v.intern] = send(v); h } end
values()
click to toggle source
@return [Array<String>] attribute names
# File lib/pkcs11/extensions.rb, line 31 def values members.inject([]){|a,v| a << send(v) } end