Class: HighLevel::Resources::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/high_level/resources/base.rb

Overview

Base class every generated resource inherits from. Owns the single #request entry point that generated methods delegate to. All logic — auth resolution, error mapping, refresh-on-401 — lives in the middleware stack on client.connection; this class is glue.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Base

Returns a new instance of Base.

Parameters:



15
16
17
# File 'lib/high_level/resources/base.rb', line 15

def initialize(client)
  @client = client
end