class Attio::APIResource
def fetch(key, default = nil)
-
(Object)
- The attribute value or default
Parameters:
-
default
(Object
) -- The default value if key is not found -
key
(String, Symbol
) -- The attribute key to fetch
def fetch(key, default = nil) @attributes.fetch(key.to_sym, default) end