Method: Sawyer::Resource#key?
- Defined in:
- lib/sawyer/resource.rb
#key?(key) ⇒ Boolean
Checks to see if the given key is in this resource.
key - A Symbol key.
Returns true if the key exists, or false.
45 46 47 |
# File 'lib/sawyer/resource.rb', line 45 def key?(key) @_fields.include? key end |