class XEClient::IndifferentHash

Public Instance Methods

coerce(value) click to toggle source
# File lib/xe_client/indifferent_hash.rb, line 3
def coerce(value)
  value.is_a?(::Hash) ? value.with_indifferent_access : value
end