Module: EasyJSONMatcher::ContentWrapper

Defined in:
lib/easy_json_matcher/content_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



4
5
6
# File 'lib/easy_json_matcher/content_wrapper.rb', line 4

def content
  @content
end

Instance Method Details

#[](key) ⇒ Object



6
7
8
# File 'lib/easy_json_matcher/content_wrapper.rb', line 6

def [](key)
  content[key.to_s]
end

#keysObject



10
11
12
# File 'lib/easy_json_matcher/content_wrapper.rb', line 10

def keys
  content.keys.map(&:to_sym)
end