Class: BrickFTP::API::Authentication::Session
- Defined in:
- lib/brick_ftp/api/authentication/session.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
all, #as_json, #delete_property, find, inherited, #initialize, #read_property, #to_json, #update, #write_property
Constructor Details
This class inherits a constructor from BrickFTP::API::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class 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 delete_property(:id) BrickFTP.config.session = nil end end |