Sha256: cee702efa15fc419e299c0c9954d4c01b90f2ab0a8382e109f7cd043a2b2cdfd

Contents?: true

Size: 396 Bytes

Versions: 7

Compression:

Stored size: 396 Bytes

Contents

module ShelbyArena

  class ShelbySession < ApiObject
    attribute :id, String
    attribute :expires_at, DateTime

    # Constructor.
    #
    # @param response_data Session response data from the Shelby service.
    def initialize(response_data)  
      self.id = response_data['ApiSession']['SessionID']
      self.expires_at = response_data['ApiSession']['DateExpires']
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shelby-arena-api-0.3.2 lib/api/shelby_session.rb
shelby-arena-api-0.3.1 lib/api/shelby_session.rb
shelby-arena-api-0.3.0 lib/api/shelby_session.rb
shelby-arena-api-0.2.2 lib/api/shelby_session.rb
shelby-arena-api-0.2.1 lib/api/shelby_session.rb
shelby-arena-api-0.2.0 lib/api/shelby_session.rb
shelby-arena-api-0.1.0 lib/api/shelby_session.rb