Module: SimpleSegment::Utils
- Included in:
- Batch, Client, Configuration
- Defined in:
- lib/simple_segment/utils.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
3 4 5 |
# File 'lib/simple_segment/utils.rb', line 3 def self.included(klass) klass.extend(self) end |
Instance Method Details
#symbolize_keys(hash) ⇒ Object
7 8 9 10 11 |
# File 'lib/simple_segment/utils.rb', line 7 def symbolize_keys(hash) hash.each_with_object({}) { |(key, value), result| result[key.to_sym] = value } end |