Method: JSS::Locatable#has_location?

Defined in:
lib/jss/api_object/locatable.rb

#has_location?Boolean

Returns Does this item have location data?.

Returns:

  • (Boolean)

    Does this item have location data?



229
230
231
232
233
234
235
236
237
238
# File 'lib/jss/api_object/locatable.rb', line 229

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