Class: Sentry::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/sentry/interface.rb

Instance Method Summary collapse

Instance Method Details

#to_hashHash

Returns:

  • (Hash)


6
7
8
# File 'lib/sentry/interface.rb', line 6

def to_hash
  Hash[instance_variables.map { |name| [name[1..-1].to_sym, instance_variable_get(name)] }]
end