Class: GlobalRegistry::Subscription
- Defined in:
- lib/global_registry/subscription.rb
Class Method Summary collapse
Methods inherited from Base
#default_path, #delete, delete, #delete_or_ignore, delete_or_ignore, find, #find, get, #get, #get_all_pages, #initialize, #path_with_id, post, #post, #put, put, request, #request
Constructor Details
This class inherits a constructor from GlobalRegistry::Base
Class Method Details
.all ⇒ Object
3 4 5 |
# File 'lib/global_registry/subscription.rb', line 3 def self.all get_all_pages['subscriptions'] end |
.create(params) ⇒ Object
7 8 9 |
# File 'lib/global_registry/subscription.rb', line 7 def self.create(params) post(subscription: params) end |