PixarAnimationStudios / ruby-jss

ruby-jss provides native ruby access to the REST APIs of Jamf Pro, an enterprise/education tool for managing Apple devices, from jamf.com. The Jamf module provides access to both APIs. Jamf Pro objects are implemented as classes and interact with each other. Authentication tokens, data format and other details are handled under the hood to allow simpler, intuitive automation of Jamf-related tasks.
http://pixaranimationstudios.github.io/jss-api-gem/index.html
Other
98 stars 28 forks source link

JSS::DirectoryBindingType class object validation changes #78

Closed cybertunnel closed 3 years ago

cybertunnel commented 4 years ago

This PR fixes some validation changes outlined in #61, but also addresses some other validation used in other DirectoryBindingType objects which could accept a nil value.

During these changes, discovered improper boolean validation and switch is_a? Bool which I used because of other language knowledge and switched to the proper Ruby way of validating Boolean values using is_a? TrueClass and is_a? FalseClass