Class: Resque::Mailer::SymbolizedHashWithIndifferentAccess

Inherits:
HashWithIndifferentAccess
  • Object
show all
Defined in:
lib/resque_mailer/symbolized_hash_with_indifferent_access.rb

Instance Method Summary collapse

Constructor Details

#initialize(obj = {}) ⇒ SymbolizedHashWithIndifferentAccess

Returns a new instance of SymbolizedHashWithIndifferentAccess.


7
8
9
# File 'lib/resque_mailer/symbolized_hash_with_indifferent_access.rb', line 7

def initialize(obj= {})
  super obj.with_indifferent_access
end

Instance Method Details

#to_hashObject


11
12
13
# File 'lib/resque_mailer/symbolized_hash_with_indifferent_access.rb', line 11

def to_hash
  symbolize_keys
end