Class: RubyPsigate::Credential
- Inherits:
-
Object
- Object
- RubyPsigate::Credential
- Defined in:
- lib/ruby_psigate/credential.rb
Instance Attribute Summary collapse
-
#cid ⇒ Object
readonly
Returns the value of attribute cid.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#userid ⇒ Object
readonly
Returns the value of attribute userid.
Instance Method Summary collapse
-
#initialize(options) ⇒ Credential
constructor
A new instance of Credential.
Constructor Details
#initialize(options) ⇒ Credential
Returns a new instance of Credential.
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ruby_psigate/credential.rb', line 6 def initialize() @cid = [:CID] @userid = [:UserID] @password = [:password] @mode = [:mode] || :test if @mode == :test @endpoint = "https://dev.psigate.com:8645/Messenger/AMMessenger" else @endpoint = "https://dev.psigate.com:8645/Messenger/AMMessenger" end end |
Instance Attribute Details
#cid ⇒ Object (readonly)
Returns the value of attribute cid.
4 5 6 |
# File 'lib/ruby_psigate/credential.rb', line 4 def cid @cid end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
4 5 6 |
# File 'lib/ruby_psigate/credential.rb', line 4 def endpoint @endpoint end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
4 5 6 |
# File 'lib/ruby_psigate/credential.rb', line 4 def mode @mode end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
4 5 6 |
# File 'lib/ruby_psigate/credential.rb', line 4 def password @password end |
#userid ⇒ Object (readonly)
Returns the value of attribute userid.
4 5 6 |
# File 'lib/ruby_psigate/credential.rb', line 4 def userid @userid end |