lib/nurego/organization.rb in nurego-1.1.20 vs lib/nurego/organization.rb in nurego-1.1.21

- old
+ new

@@ -13,19 +13,20 @@ def bills Bill.all({ :organization => id }, @api_key)[:bills] end - def self.entitlements(organization_id, params = {}, api_key = nil) - Entitlement.all(organization_id, {:feature_id => params[:feature_id] }, api_key) - end - def entitlements(feature_id = nil) Entitlement.all(id, {:feature_id => feature_id, :external_ids => 'false' }, @api_key) end - def plan(params = {}, api_key = nil) - response, api_key = Nurego.request(:get, url + '/plan', api_key, params) + def subscriptions(params = {}, api_key = nil) + response, api_key = Nurego.request(:get, url + '/subscriptions', api_key, params) + Util.convert_to_nurego_object(response, api_key) + end + + def users(params = {}, api_key = nil) + response, api_key = Nurego.request(:get, url + '/users', api_key, params) Util.convert_to_nurego_object(response, api_key) end def feature_data(params = {}, api_key = nil) response, api_key = Nurego.request(:get, url + "/feature_data", api_key, params)