Sha256: f0cc4d029695d7cb71fa95af3420d9fe0a2bf127018cc4005c92dfcb1e562b23

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

module Alexagram
  class Session
    
    def initialize json
      @json = json
      @dictionary = JSON.parse(@json)
    end
    
    def is_new
      @dictionary['session']['new']
    end
    
    def sessionId
      @dictionary['session']['sessionId']
    end

    def applicationId
      @dictionary['session']['application']['applicationId']
    end

    def userId
      @dictionary['session']['user']['userId']
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alexagram-1.0 lib/alexagram/session.rb