Class: PackageCloud::GpgKey
- Defined in:
- lib/package_cloud/gpg_key.rb
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize(attrs, config) ⇒ GpgKey
constructor
A new instance of GpgKey.
Methods inherited from Object
Constructor Details
#initialize(attrs, config) ⇒ GpgKey
Returns a new instance of GpgKey.
3 4 5 6 |
# File 'lib/package_cloud/gpg_key.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
8 9 10 11 |
# File 'lib/package_cloud/gpg_key.rb', line 8 def destroy url = PackageCloud::Util.compute_url(@config.base_url, @attrs["self"]) RestClient.delete(url) end |