diff --git a/lib/trmnl/api/endpoints/current_screen.rb b/lib/trmnl/api/endpoints/current_screen.rb index 708f672..ec05bc8 100644 --- a/lib/trmnl/api/endpoints/current_screen.rb +++ b/lib/trmnl/api/endpoints/current_screen.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "inspectable" require "pipeable" module TRMNL @@ -13,6 +14,7 @@ module TRMNL model: "models.current_screen" ] + include Inspectable[contract: :class] include Pipeable def call token: diff --git a/lib/trmnl/api/endpoints/display.rb b/lib/trmnl/api/endpoints/display.rb index 2a81279..0e3e5ea 100644 --- a/lib/trmnl/api/endpoints/display.rb +++ b/lib/trmnl/api/endpoints/display.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "inspectable" require "pipeable" module TRMNL @@ -13,6 +14,7 @@ module TRMNL model: "models.display" ] + include Inspectable[contract: :class] include Pipeable def call token: diff --git a/lib/trmnl/api/endpoints/firmware.rb b/lib/trmnl/api/endpoints/firmware.rb index cf6f83f..5d0b853 100644 --- a/lib/trmnl/api/endpoints/firmware.rb +++ b/lib/trmnl/api/endpoints/firmware.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "inspectable" require "pipeable" module TRMNL @@ -13,6 +14,7 @@ module TRMNL model: "models.firmware" ] + include Inspectable[contract: :class] include Pipeable def call diff --git a/lib/trmnl/api/endpoints/setup.rb b/lib/trmnl/api/endpoints/setup.rb index 35a0da0..2875d06 100644 --- a/lib/trmnl/api/endpoints/setup.rb +++ b/lib/trmnl/api/endpoints/setup.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "inspectable" require "pipeable" module TRMNL @@ -13,6 +14,7 @@ module TRMNL model: "models.setup" ] + include Inspectable[contract: :class] include Pipeable def call id: diff --git a/spec/lib/trmnl/api/endpoints/current_screen_spec.rb b/spec/lib/trmnl/api/endpoints/current_screen_spec.rb index 75c619e..0070b5c 100644 --- a/spec/lib/trmnl/api/endpoints/current_screen_spec.rb +++ b/spec/lib/trmnl/api/endpoints/current_screen_spec.rb @@ -63,4 +63,8 @@ RSpec.describe TRMNL::API::Endpoints::CurrentScreen do end end end + + describe "#inspect" do + it_behaves_like "an inspectable endpoint", described_class.new + end end diff --git a/spec/lib/trmnl/api/endpoints/display_spec.rb b/spec/lib/trmnl/api/endpoints/display_spec.rb index 206ec56..551df9e 100644 --- a/spec/lib/trmnl/api/endpoints/display_spec.rb +++ b/spec/lib/trmnl/api/endpoints/display_spec.rb @@ -69,4 +69,8 @@ RSpec.describe TRMNL::API::Endpoints::Display do end end end + + describe "#inspect" do + it_behaves_like "an inspectable endpoint", described_class.new + end end diff --git a/spec/lib/trmnl/api/endpoints/firmware_spec.rb b/spec/lib/trmnl/api/endpoints/firmware_spec.rb index 7cd6b02..68ff0b7 100644 --- a/spec/lib/trmnl/api/endpoints/firmware_spec.rb +++ b/spec/lib/trmnl/api/endpoints/firmware_spec.rb @@ -57,4 +57,8 @@ RSpec.describe TRMNL::API::Endpoints::Firmware do end end end + + describe "#inspect" do + it_behaves_like "an inspectable endpoint", described_class.new + end end diff --git a/spec/lib/trmnl/api/endpoints/setup_spec.rb b/spec/lib/trmnl/api/endpoints/setup_spec.rb index 88c8ea3..897f879 100644 --- a/spec/lib/trmnl/api/endpoints/setup_spec.rb +++ b/spec/lib/trmnl/api/endpoints/setup_spec.rb @@ -63,4 +63,8 @@ RSpec.describe TRMNL::API::Endpoints::Setup do end end end + + describe "#inspect" do + it_behaves_like "an inspectable endpoint", described_class.new + end end