Class: TRMNL::API::Client
- Inherits:
-
Object
- Object
- TRMNL::API::Client
- Defined in:
- lib/trmnl/api/client.rb
Overview
Provides the primary client for making API requests.
Instance Method Summary collapse
- #categories ⇒ Object
- #current_screen ⇒ Object
- #display ⇒ Object
- #firmware ⇒ Object
-
#initialize {|settings| ... } ⇒ Client
constructor
A new instance of Client.
- #ip_addresses ⇒ Object
- #log ⇒ Object
- #models ⇒ Object
- #palettes ⇒ Object
- #setup ⇒ Object
Constructor Details
#initialize {|settings| ... } ⇒ Client
Returns a new instance of Client.
35 36 37 38 |
# File 'lib/trmnl/api/client.rb', line 35 def initialize(**) super yield settings if block_given? end |
Instance Method Details
#categories ⇒ Object
40 |
# File 'lib/trmnl/api/client.rb', line 40 def categories = endpoint_categories.call |
#current_screen ⇒ Object
42 |
# File 'lib/trmnl/api/client.rb', line 42 def current_screen(**) = endpoint_current_screen.call(**) |
#display ⇒ Object
44 |
# File 'lib/trmnl/api/client.rb', line 44 def display(**) = endpoint_display.call(**) |
#firmware ⇒ Object
46 |
# File 'lib/trmnl/api/client.rb', line 46 def firmware = endpoint_firmware.call |
#ip_addresses ⇒ Object
48 |
# File 'lib/trmnl/api/client.rb', line 48 def ip_addresses = endpoint_ip_addresses.call |
#log ⇒ Object
50 |
# File 'lib/trmnl/api/client.rb', line 50 def log(**) = endpoint_log.call(**) |
#models ⇒ Object
52 |
# File 'lib/trmnl/api/client.rb', line 52 def models(**) = endpoint_models.call(**) |
#palettes ⇒ Object
54 |
# File 'lib/trmnl/api/client.rb', line 54 def palettes = endpoint_palettes.call |
#setup ⇒ Object
56 |
# File 'lib/trmnl/api/client.rb', line 56 def setup(**) = endpoint_setup.call(**) |