def matches_attribute_value?(attribute, value)
      v = send(attribute)
      Resource === v ? value.matches?(v) : value == v
    end
def matches_attribute_value?(attribute, value)
      v = send(attribute)
      Resource === v ? value.matches?(v) : value == v
    end
Returns whether this Resource's attribute value matches the given value.
 A domain attribute match is determined by {#match?}.
 A non-domain attribute match is determined by an equality comparison.

 @param [Symbol] attribute the attribute to match
 @param value the value to compare
 @return [Boolean] whether the values match