class Ably::Models::IdiomaticRubyWrapper

Wraps Hash objects returned by Ably service to appear as Idiomatic Ruby Hashes with symbol keys It recursively wraps containing Hashes, but will stop wrapping at arrays, any other non Hash object, or any key matching the ‘:stops_at` options It also provides methods matching the symbolic keys for convenience

@example

ruby_hash = IdiomaticRubyWrapper.new({ 'keyValue' => 'true' })
# or recommended to avoid wrapping wrapped objects
ruby_hash = IdiomaticRubyWrapper({ 'keyValue' => 'true' })

ruby_hash[:key_value] # => 'true'
ruby_hash.key_value # => 'true'
ruby_hash[:key_value] = 'new_value'
ruby_hash.key_value # => 'new_value'

ruby_hash[:none] # => nil
ruby_hash.none # => nil

@!attribute [r] stop_at

@return [Array<Symbol,String>] array of keys that this wrapper should stop wrapping at to preserve the underlying Hash as is