Class: PackageCloud::MasterToken
- Defined in:
- lib/package_cloud/master_token.rb
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize(attrs, config) ⇒ MasterToken
constructor
A new instance of MasterToken.
- #read_tokens ⇒ Object
Methods inherited from Object
Constructor Details
#initialize(attrs, config) ⇒ MasterToken
Returns a new instance of MasterToken.
3 4 5 6 |
# File 'lib/package_cloud/master_token.rb', line 3 def initialize(attrs, config) @attrs = attrs @config = config end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PackageCloud::Object
Instance Method Details
#destroy ⇒ Object
14 15 16 17 |
# File 'lib/package_cloud/master_token.rb', line 14 def destroy url = PackageCloud::Util.compute_url(@config.base_url, paths["self"]) RestClient.delete(url) end |