lib/jss/api_object/locatable.rb
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
###
### Call this during initialization of
### objects that have a Location subset
### and the location attributes will be populated
### (as primary attributes) from @init_data
###
### @return [void]
###
Call this during initialization of
objects that have a Location subset
and the location attributes will be populated
(as primary attributes) from @init_data
Call this during initialization of objects that have a Location subset and the location attributes will be populated ( as primary attributes ) from @init_data
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
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
Call this during initialization of
objects that have a Location subset
and the location attributes will be populated
(as primary attributes) from @init_data
Call this during initialization of objects that have a Location subset and the location attributes will be populated ( as primary attributes ) from @init_data
None
void