Method: JSS::Locatable#parse_location
- Defined in:
- lib/jss/api_object/locatable.rb
#parse_location ⇒ void
This method returns an undefined value.
Call this during initialization of objects that have a Location subset and the location attributes will be populated (as primary attributes) from @init_data
120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/jss/api_object/locatable.rb', line 120 def parse_location @init_data[:location] ||= {} @building = @init_data[:location][:building] @department = @init_data[:location][:department] @email_address = @init_data[:location][:email_address] @phone = @init_data[:location][:phone] @position = @init_data[:location][:position] @real_name = @init_data[:location][:real_name] @room = @init_data[:location][:room] @username = @init_data[:location][:username] end |