Method: OsoCloud::Oso#get

Defined in:
lib/oso/oso.rb

#get(name, *args) ⇒ Array<fact>

List facts

Lists facts that are stored in Oso Cloud. Can be used to check the existence of a particular fact, or used to fetch all facts that have a particular argument. nil arguments operate as wildcards.

Parameters:

Returns:

  • (Array<fact>)

See Also:



351
352
353
# File 'lib/oso/oso.rb', line 351

def get(name, *args)
  OsoCloud::Helpers.facts_to_params(@api.get_facts(name, args))
end