MCPcopy Create free account
hub / github.com/code-dot-org/code-dot-org / method_missing

Method method_missing

lib/cdo/secrets.rb:84–87  ·  view source on GitHub ↗

Alternate lookup: secrets.secret

(key, *args)

Source from the content-addressed store, hash-verified

82
83 # Alternate lookup: secrets.secret
84 def method_missing(key, *args)
85 return super unless args.empty?
86 get(key).value
87 end
88
89 # Wraps a Secret value in a Lazy object so that the API call to
90 # +GetSecretValue+ won't be performed until the secret is actually used.

Callers

nothing calls this directly

Calls 3

empty?Method · 0.80
valueMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected