handlers/kinetic_submission_update_attribute_v1/handler/vendor/ars-models-0.0.7/lib/ars_models/field.rb
# Internal JAPI representation of the com.kd.ars.models.structure.ArsField object
Internal JAPI representation of the com.kd.ars.models.structure.ArsField object
Internal JAPI representation of the com . kd . ars . models . structure . ArsField object
def generate(japi_object, options={})
      raise 'Invalid com.kd.ars.models.structure.ArsField.' unless japi_object.is_a?(ArsField)
      @ars_field = japi_object
      options.keys.each do |key|
        if [:id, :name, :label, :datatype, :entrymode, :default_value].include?(key)
          self.send("#{key}=", options[key]) if options.has_key?(key)
        end
      end
    end
def generate ( japi_object , options = { } ) raise 'Invalid com.kd.ars.models.structure.ArsField.' unless japi_object . is_a? ( ArsField ) @ars_field = japi_object options . keys . each do | key | if [ :id , :name , :label , :datatype , :entrymode , :default_value ] . include? ( key ) self . send ( "#{key}=" , options [ key ] ) if options . has_key? ( key ) end end end
Internal JAPI representation of the com.kd.ars.models.structure.ArsField object
Internal JAPI representation of the com . kd . ars . models . structure . ArsField object
# Raise an error if the provided object is not actually a JAPI field # Store the JAPI ArsField object # If there were options passed in with the ArsField object, overwrite the object with those values
japi_object
<not_specific>
options
<not_specific>