Sha256: 575c34840ad2eee04c9c46f19f6dd007ebe44df41229bd8808fafc640c70971f

Contents?: true

Size: 647 Bytes

Versions: 2

Compression:

Stored size: 647 Bytes

Contents

module ISACA
  module Model
    class GetUserByID
      attr_accessor :active_member
      attr_accessor :expiration_date
      attr_accessor :member_type
      attr_accessor :imis_id

      def initialize(hash)
        @active_member = ISACA::Helpers.parse_boolean(hash['ActiveMember'])
        @expiration_date = ISACA::Helpers.strptime(hash['ExpirationDate'])
        @member_type = ISACA::Helpers.normalize_member_type(hash['MemberType'])

        if hash['iMISID'] == ""
          @imis_id = nil
        else
          @imis_id = hash['iMISID']
        end
      end

      def active_member?
        active_member
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
isaca-1.0.0 lib/isaca/models/get_user_by_id.rb
isaca-0.1.9 lib/isaca/models/get_user_by_id.rb