Sha256: a001bbcd472040fe740e4c5a2f48799284f4d536f368a00ccf827b1e31811dff

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

# -----------------------------------------------------------------------
#  Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
# -----------------------------------------------------------------------

require 'App42Response.rb'

#
#
# This Log object is the value object which contains the properties of Log.
#
#

module App42
  module Log
    class Log < App42Response
      attr_accessor  :messageList
      @messageList = Array.new
    end

    class  Message
      attr_accessor  :message,:type,:logTime,:module

      #
      # This is a constructor that takes no parameter
      #
      #
      def initialize(log)
        log.messageList.push(self);
      end

      #
      # Returns the Log Response in JSON format.
      #
      # @return the response in JSON format.
      #
      #

      def to_s
        return "Message : #{self.message}" + "type : #{self.type}" + "AppModule : #{self.module}" + "logTime : #{self.logTime}";
      end

      @message
      @type
      @logTime
      @module

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
App42_RUBY_SDK-0.8.3 lib/log/Log.rb