Class: Vonage::Client
- Inherits:
-
Object
- Object
- Vonage::Client
- Includes:
- HTTParty, Authentication, Http, Rest
- Defined in:
- lib/vonage/client.rb
Instance Attribute Summary collapse
-
#cookies ⇒ Object
Returns the value of attribute cookies.
-
#login ⇒ Object
Returns the value of attribute login.
-
#password ⇒ Object
Returns the value of attribute password.
Instance Method Summary collapse
-
#initialize(login, password) ⇒ Client
constructor
A new instance of Client.
Methods included from Rest
Methods included from Http
Methods included from Authentication
#authenticate, #authenticated?, #reauthenticate
Constructor Details
#initialize(login, password) ⇒ Client
Returns a new instance of Client.
16 17 18 19 20 21 |
# File 'lib/vonage/client.rb', line 16 def initialize login, password @login = login @password = password @cookies = CookieHash.new end |
Instance Attribute Details
#cookies ⇒ Object
Returns the value of attribute cookies.
14 15 16 |
# File 'lib/vonage/client.rb', line 14 def @cookies end |
#login ⇒ Object
Returns the value of attribute login.
14 15 16 |
# File 'lib/vonage/client.rb', line 14 def login @login end |
#password ⇒ Object
Returns the value of attribute password.
14 15 16 |
# File 'lib/vonage/client.rb', line 14 def password @password end |