Module: Booqable::Resources

Included in:
Client
Defined in:
lib/booqable/resources.rb,
sig/booqable.rbs

Overview

Resource-related methods for Client

Constant Summary collapse

RESOURCES_FILE_PATH =

Path to the resources definition file

Returns:

  • (String)
File.join(File.dirname(__FILE__), "resources.json")
ALL_RESOURCES =

All resources loaded from the resources.json file

Returns:

  • (Array[String | Hash[String, String]])
JSON.parse(File.read(RESOURCES_FILE_PATH))

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingResourceProxy

Parameters:

  • method_name (Symbol)
  • args (Object)

Returns:



85
# File 'sig/booqable.rbs', line 85

def method_missing: (Symbol method_name, *untyped args) -> ResourceProxy