Sha256: bbfc295a16f18b02e20df9a7c8b83737cb113343183b0a27da2cafeacee502f2

Contents?: true

Size: 915 Bytes

Versions: 1

Compression:

Stored size: 915 Bytes

Contents

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

require 'connection/RESTConnection'
require 'util/util'
require 'json/pure'

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

module App42
  module Session
    class Session < App42Response
      attr_accessor :userName, :sessionId,:createdOn,:invalidatedOn,:attributeList

      @userName
      @sessionId
      @createdOn
      @invalidatedOn
      @attributeList = Array.new()
    end

    class Attribute
      attr_accessor :name, :value
      @name
      @value

      #
      # This is a constructor that takes no parameter
      #
      #
      def initialize(session)
        session.attributeList.push(self)

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
App42_Ruby_API-0.8.4 lib/session/Session.rb