Class: Dropbox::WebClient::Session
- Inherits:
-
Object
- Object
- Dropbox::WebClient::Session
- Includes:
- Actions, Authentication, Paths
- Defined in:
- lib/dropbox/web_client/session.rb
Instance Attribute Summary collapse
-
#cookies ⇒ Object
readonly
Returns the value of attribute cookies.
-
#email ⇒ Object
Returns the value of attribute email.
-
#password ⇒ Object
Returns the value of attribute password.
Instance Method Summary collapse
-
#initialize(credentials = {}) ⇒ Session
constructor
A new instance of Session.
Methods included from Actions
Methods included from Authentication
#authenticate, #authenticated?, #ensure_authenticated
Constructor Details
#initialize(credentials = {}) ⇒ Session
Returns a new instance of Session.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/dropbox/web_client/session.rb', line 12 def initialize(credentials = {}) # Initialize login details @email = credentials[:email] @password = credentials[:password] # Initialize cookie manager @cookies = CookieManager.new # Start unauthenticated @authenticated = false end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Dropbox::WebClient::Paths
Instance Attribute Details
#cookies ⇒ Object (readonly)
Returns the value of attribute cookies.
10 11 12 |
# File 'lib/dropbox/web_client/session.rb', line 10 def @cookies end |
#email ⇒ Object
Returns the value of attribute email.
9 10 11 |
# File 'lib/dropbox/web_client/session.rb', line 9 def email @email end |
#password ⇒ Object
Returns the value of attribute password.
9 10 11 |
# File 'lib/dropbox/web_client/session.rb', line 9 def password @password end |