handlers/kinetic_submission_update_attribute_v1/handler/vendor/ars-models-0.0.7/lib/ars_models/context.rb
# Attempt to log in the AR server user context represented by the Context
# object.  This method returns an array of hashes representing any AR server
# messages triggered during log in.  These method hashes include values for
# the following keys: +:message+, +:type+, +:number+.  If any problems were
# encountered during login a new ModelException is thrown.
Attempt to log in the AR server user context represented by the Context
object.  This method returns an array of hashes representing any AR server
messages triggered during log in.
Attempt to log in the AR server user context represented by the Context object . This method returns an array of hashes representing any AR server messages triggered during log in .
def login
      begin
        @ars_context.login
        @ars_context.get_messages.collect do |message|
          {:message => message.get_message, :type => message.get_type, :number => message.get_number}
        end
      rescue NativeException => exception
        raise Exceptions::ModelException.new(exception.cause)
      end
    end
def login begin @ars_context . login @ars_context . get_messages . collect do | message | { :message => message . get_message , :type => message . get_type , :number => message . get_number } end rescue NativeException => exception raise Exceptions :: ModelException . new ( exception . cause ) end end
Attempt to log in the AR server user context represented by the Context
object.
Attempt to log in the AR server user context represented by the Context object .
# Try to log in # If the login was successful, capture any AR messages # If an exception is thrown, raise a ModelException