Class: BrickFTP::API::Authentication::Session
- Defined in:
- lib/brick_ftp/api/authentication/session.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
all, find, inherited, #initialize, #update
Constructor Details
This class inherits a constructor from BrickFTP::API::Base
Class Method Details
.create(params = {}) ⇒ Object
12 13 14 |
# File 'lib/brick_ftp/api/authentication/session.rb', line 12 def self.create(params = {}) super.tap { |x| BrickFTP.config.session = x } end |
Instance Method Details
#destroy ⇒ Object
16 17 18 19 20 21 |
# File 'lib/brick_ftp/api/authentication/session.rb', line 16 def destroy super.tap do @id = nil BrickFTP.config.session = nil end end |