Class: Mitake::Credential
- Inherits:
-
Object
- Object
- Mitake::Credential
- Defined in:
- lib/mitake/credential.rb
Overview
The Mitake SMS Client
Constant Summary collapse
- DEFAULT_SERVER =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'https://smsapi.mitake.com.tw'
Instance Attribute Summary collapse
- #password ⇒ Object readonly
- #server ⇒ Object readonly
- #username ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(username = nil, password = nil, server = nil) ⇒ Mitake::Client
constructor
Return Mitake::Client instance.
Constructor Details
#initialize(username = nil, password = nil, server = nil) ⇒ Mitake::Client
Return Mitake::Client instance
23 24 25 26 27 |
# File 'lib/mitake/credential.rb', line 23 def initialize(username = nil, password = nil, server = nil) @username = username || ENV['MITAKE_USERNAME'] @password = password || ENV['MITAKE_PASSWORD'] @server = server || ENV['MITAKE_SERVER'] || DEFAULT_SERVER end |
Instance Attribute Details
#password ⇒ Object (readonly)
13 14 15 |
# File 'lib/mitake/credential.rb', line 13 def password @password end |
#server ⇒ Object (readonly)
13 14 15 |
# File 'lib/mitake/credential.rb', line 13 def server @server end |
#username ⇒ Object (readonly)
13 14 15 |
# File 'lib/mitake/credential.rb', line 13 def username @username end |