You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ruby allows for very expressive libraries. Let's hide the internals from the users and build on the `Seam` module.
So,
moduleSeamdefself.new(**args)Http.new(**args)enddeffrom_api_keyenddeffrom_personal_access_tokenend# Expose lts_version and version hereend
Errors are Seam::HttpApiError and Seam::ActionAttemptTimeoutError, etc as those are shared by things in the module.
The invalid option errors should be class level though, so Seam:Http::InvalidOptionsError (these errors are internal, the user is not meant to really catch them and handle them).
The other classes must be accessed directly, e.g., Seam::Webhook.new and Seam::HttpMultiWorkspace.new.
So,
Errors are
Seam::HttpApiError
andSeam::ActionAttemptTimeoutError
, etc as those are shared by things in the module.The invalid option errors should be class level though, so
Seam:Http::InvalidOptionsError
(these errors are internal, the user is not meant to really catch them and handle them).The other classes must be accessed directly, e.g.,
Seam::Webhook.new
andSeam::HttpMultiWorkspace.new
.Originally posted by @razor-x in #61 (comment)
The text was updated successfully, but these errors were encountered: