lib/jss/api_object/criteriable.rb
#
# During initialization, convert the @init_data[:criteria] Hash into
# a JSS::Criteriable::Criteria instance stored in @criteria
#
# Classes mixing in this module must call this in #initialize
#
# @return [void]
#


Classes mixing in this module must call this in #initialize
Classes mixing in this module must call this in #initialize
def parse_criteria
      @criteria = JSS::Criteriable::Criteria.new
      @criteria.criteria = @init_data[:criteria].map { |c| JSS::Criteriable::Criterion.new c } if @init_data[:criteria]
      @criteria.container = self
    end
def parse_criteria @criteria = JSS :: Criteriable :: Criteria . new @criteria . criteria = @init_data [ :criteria ] . map { | c | JSS :: Criteriable :: Criterion . new c } if @init_data [ :criteria ] @criteria . container = self end
During initialization, convert the @init_data[:criteria] Hash into
a JSS::Criteriable::Criteria instance stored in @criteria
During initialization convert the @init_data [ : criteria ] Hash into a JSS :: Criteriable :: Criteria instance stored in @criteria
None
void