Sha256: 3397a6860fdea076f3d690093461fe6b2ae5cb2caf9ab4a8cad941ac08c5ec3f

Contents?: true

Size: 205 Bytes

Versions: 2

Compression:

Stored size: 205 Bytes

Contents

module Tessera
  module Otrs
    class Base
      def to_hash
        Hash[instance_variables.map do |v|
          [v.to_s[1..-1].to_sym, instance_variable_get(v)]
        end]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tessera-1.0.1 lib/tessera/otrs/base.rb
tessera-1.0.0 lib/tessera/otrs/base.rb