Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
parent
ce57528961
commit
279ec97582
@ -104,6 +104,9 @@ setmetatable(M, {
|
|||||||
t[k] = setmetatable({}, { __index = v })
|
t[k] = setmetatable({}, { __index = v })
|
||||||
-- Hack for aliasing and makes it sane for us.
|
-- Hack for aliasing and makes it sane for us.
|
||||||
t[k].parse_response = v.parse_response_data
|
t[k].parse_response = v.parse_response_data
|
||||||
|
t[k].has = function()
|
||||||
|
return os.getenv(t[k].api_key_name) and true or false
|
||||||
|
end
|
||||||
|
|
||||||
return t[k]
|
return t[k]
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user