lib/jss/api_object/scopable/scope.rb
def in_scope?(machine)
        machine_data = fetch_machine_data machine

        a_target?(machine_data) && within_limitations?(machine_data) && !excluded?(machine_data)
      end
# is a given machine is in this scope?
#
# For a parameter you may pass either an instantiated
# JSS::MobileDevice or JSS::Computer, or an identifier for one.
# If an identifier is passed, it is not instantiated, but an API
# request is made for just the required subsets of data, thus
# speeding things up a bit when calling this method many times.
#
# WARNING: For scopes that include Jamf Users and Jamf User Groups
# as targets or exclusions, this method may return an incorrect value.
# See the discussion in the documentation for the Scopable::Scope class
# under 'IMPORTANT - Users & User Groups in Targets and Exclusions'
#
# NOTE: currently in-range iBeacons are transient, and are not reported
# to the JSS as inventory data. As such they are ignored in this result.
# If a scope contains iBeacon limitations or exclusions, it is up to
# the user to be aware of that when evaluating the meaning of this result.
#
# @param machine[Integer, String, JSS::MobileDevice, JSS::Computer]
#   Either an identifier for the machine, or an instantiated object
#
# @return [Boolean]
#
##############


For scopes that include Jamf Users and Jamf User Groups
as targets or exclusions, this method may return an incorrect value.
See the discussion in the documentation for the Scopable::Scope class
under 'IMPORTANT - Users & User Groups in Targets and Exclusions'

currently in-range iBeacons are transient, and are not reported
to the JSS as inventory data. As such they are ignored in this result.
If a scope contains iBeacon limitations or exclusions, it is up to
the user to be aware of that when evaluating the meaning of this result.
For scopes that include Jamf Users and Jamf User Groups as targets or exclusions this method may return an incorrect value . See the discussion in the documentation for the Scopable :: Scope class under ' IMPORTANT - Users & User Groups in Targets and Exclusions ' currently in - range iBeacons are transient and are not reported to the JSS as inventory data . As such they are ignored in this result . If a scope contains iBeacon limitations or exclusions it is up to the user to be aware of that when evaluating the meaning of this result .
def in_scope?(machine)
        machine_data = fetch_machine_data machine
        a_target?(machine_data) && within_limitations?(machine_data) && !excluded?(machine_data)
      end
def in_scope? ( machine ) machine_data = fetch_machine_data machine a_target? ( machine_data ) && within_limitations? ( machine_data ) && ! excluded? ( machine_data ) end
is a given machine is in this scope?
is a given machine is in this scope?
None
Boolean
machine
Either an identifier for the machine, or an instantiated object
Either an identifier for the machine or an instantiated object