lib/excon/hypermedia/resource_object.rb in excon-hypermedia-0.5.3 vs lib/excon/hypermedia/resource_object.rb in excon-hypermedia-0.6.0

- old
+ new

@@ -9,11 +9,11 @@ # ResourceObject # # Represents a resource. # class ResourceObject - RESERVED_PROPERTIES = %w(_links _embedded).freeze + RESERVED_PROPERTIES = %w[_links _embedded].freeze def initialize(data) @data = data end @@ -57,9 +57,13 @@ _properties[key] end def method_missing(method_name, *_) _properties.respond_to?(method_name) ? _properties.send(method_name) : super + end + + def respond_to_missing?(method_name, _ = false) + _properties.respond_to?(method_name) || super end end end end