Class: Tessera::Otrs::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/tessera/otrs/base.rb

Direct Known Subclasses

Article, Attachment, Ticket

Instance Method Summary collapse

Instance Method Details

#to_hashObject



4
5
6
7
8
# File 'lib/tessera/otrs/base.rb', line 4

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