Sha256: b750fe585a1678ddaa959b499f43a05115ecd067cf75dda08d63e9b172e4089c

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

module RubyPsigate
  class Credential
    
    attr_reader :cid, :userid, :password, :mode, :endpoint
  
    def initialize(options)
      @cid      = options[:CID]
      @userid   = options[:UserID]
      @password = options[:password]
      @mode     = options[:mode] || :test
      
      if @mode == :test
        @endpoint = "https://dev.psigate.com:8645/Messenger/AMMessenger"
      else
        @endpoint = "https://dev.psigate.com:8645/Messenger/AMMessenger"
      end
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_recurrence-0.1.1 lib/ruby_psigate/credential.rb
pg_recurrence-0.1.0 lib/ruby_psigate/credential.rb