Class: TRMNL::API::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/trmnl/api/client.rb

Overview

Provides the primary client for making API requests.

Instance Method Summary collapse

Constructor Details

#initialize {|settings| ... } ⇒ Client

Returns a new instance of Client.

Yields:

  • (settings)


35
36
37
38
# File 'lib/trmnl/api/client.rb', line 35

def initialize(**)
  super
  yield settings if block_given?
end

Instance Method Details

#categoriesObject



40
# File 'lib/trmnl/api/client.rb', line 40

def categories = endpoint_categories.call

#current_screenObject



42
# File 'lib/trmnl/api/client.rb', line 42

def current_screen(**) = endpoint_current_screen.call(**)

#displayObject



44
# File 'lib/trmnl/api/client.rb', line 44

def display(**) = endpoint_display.call(**)

#firmwareObject



46
# File 'lib/trmnl/api/client.rb', line 46

def firmware = endpoint_firmware.call

#ip_addressesObject



48
# File 'lib/trmnl/api/client.rb', line 48

def ip_addresses = endpoint_ip_addresses.call

#logObject



50
# File 'lib/trmnl/api/client.rb', line 50

def log(**) = endpoint_log.call(**)

#modelsObject



52
# File 'lib/trmnl/api/client.rb', line 52

def models(**) = endpoint_models.call(**)

#palettesObject



54
# File 'lib/trmnl/api/client.rb', line 54

def palettes = endpoint_palettes.call

#setupObject



56
# File 'lib/trmnl/api/client.rb', line 56

def setup(**) = endpoint_setup.call(**)