lib/jss/api_object.rb
# Start examining the @init_data recieved from the API
#
# @return [void]
#
Start examining the @init_data recieved from the API
Start examining the @init_data recieved from the API
def parse_init_data
      @init_data ||= {}
      @init_data.jss_nillify! '', :recurse
      @main_subset = find_main_subset
      @name = @main_subset[:name]
      if @main_subset[:id] == :new
        @id = 0
        @in_jss = false
      else
        @id = @main_subset[:id].to_i
        @in_jss = true
      end
      @rest_rsrc = "#{self.class::RSRC_BASE}/id/#{@id}"
      initialize_category
      initialize_site
      initialize_location
      initialize_purchasing
      initialize_scope
      initialize_criteria
      initialize_ext_attrs
      initialize_vpp
      initialize_self_service
    end
def parse_init_data @init_data ||= { } @init_data . jss_nillify! '' , :recurse @main_subset = find_main_subset @name = @main_subset [ :name ] if @main_subset [ :id ] == :new @id = 0 @in_jss = false else @id = @main_subset [ :id ] . to_i @in_jss = true end @rest_rsrc = "#{self.class::RSRC_BASE}/id/#{@id}" initialize_category initialize_site initialize_location initialize_purchasing initialize_scope initialize_criteria initialize_ext_attrs initialize_vpp initialize_self_service end
Start examining the @init_data recieved from the API
Start examining the @init_data recieved from the API
# set empty strings to nil # Find the "main" subset which contains :id and :name ##### Handle Mix-ins
None
void