Sha256: 54b8627be5e18e94ad664a4cc12e83cd15541912716c5110113938da44e531f9
Contents?: true
Size: 963 Bytes
Versions: 7
Compression:
Stored size: 963 Bytes
Contents
## Implementing the transport - Exercise Implement the `request_debug` option that you can toggle on to create additional debug output on each request. If you get stuck, review the hints below, or [the finished file](TODO). ## Hints * You can create a toggle option with the `Boolean` (`true` or `false`) data type. Add it to the `connection_info` in the transport schema. * Make it an `Optional[Boolean]` so that users who do not require request debugging do not have to specify the value. * To remember the value you passed, store `connection_info[:request_debug]` in a `@request_debug` variable. * In the `hue_get` and `hue_put` methods, add `context.debug(message)` calls showing the method's arguments. * Make the debugging optional based on your input by appending `if @request_debug` to each logging statement. # Next Up Now that the transport can talk to the remote target, it's time to [implement a provider](./06-implementing-the-provider.md).
Version data entries
7 entries across 7 versions & 1 rubygems