Method: Jamf::Locatable#has_location?

Defined in:
lib/jamf/api/classic/api_objects/locatable.rb

#has_location?Boolean

Returns Does this item have location data?.

Returns:

  • (Boolean)

    Does this item have location data?



224
225
226
227
228
229
230
231
232
233
# File 'lib/jamf/api/classic/api_objects/locatable.rb', line 224

def has_location?
  @username or \
    @real_name or \
    @email_address or \
    @position or \
    @phone or \
    @department or \
    @building or \
    @room
end