Class: JSS::ManagementHistory::UserLocationChange

Inherits:
Object
  • Object
show all
Includes:
HashLike
Defined in:
lib/jss/api_object/management_history/user_location_change.rb

Overview

UserLocationChange - a change in a device's assigned user or location

This should only be instantiated by the ManagementHistory.user_location_history method when mixed in to Computers or Mobile devices.

That method will return an array of these objects.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#buildingString (readonly)


# File 'lib/jss/api_object/management_history/user_location_change.rb', line 50

#date_time_epochInteger (readonly)


# File 'lib/jss/api_object/management_history/user_location_change.rb', line 28

#departmentString (readonly) Also known as: dept


48
# File 'lib/jss/api_object/management_history/user_location_change.rb', line 48

alias dept department

#email_addressString (readonly) Also known as: email


40
# File 'lib/jss/api_object/management_history/user_location_change.rb', line 40

alias email email_address

#full_nameString (readonly)


# File 'lib/jss/api_object/management_history/user_location_change.rb', line 34

#phone_numberString (readonly)


# File 'lib/jss/api_object/management_history/user_location_change.rb', line 42

#positionString (readonly)


# File 'lib/jss/api_object/management_history/user_location_change.rb', line 56

#roomString (readonly)


# File 'lib/jss/api_object/management_history/user_location_change.rb', line 53

#usernameString (readonly)


# File 'lib/jss/api_object/management_history/user_location_change.rb', line 31

Instance Method Details

#[](attr) ⇒ Object Originally defined in module HashLike

#date_timeTime


61
62
63
# File 'lib/jss/api_object/management_history/user_location_change.rb', line 61

def date_time
  JSS.epoch_to_time @date_time_epoch if @date_time_epoch
end