class Nurego::Organization
Public Instance Methods
bills()
click to toggle source
# File lib/nurego/organization.rb, line 14 def bills Bill.all({ :organization => id }, @api_key)[:bills] end
cancel(params = {}, api_key = nil)
click to toggle source
# File lib/nurego/organization.rb, line 37 def cancel(params = {}, api_key = nil) response, api_key = Nurego.request(:post, url + '/cancel', api_key, params) Util.convert_to_nurego_object(response, api_key) end
entitlements(feature_id = nil)
click to toggle source
# File lib/nurego/organization.rb, line 18 def entitlements(feature_id = nil) Entitlement.all_by_organization(id, {:feature_id => feature_id}, @api_key) end
feature_data(params = {}, api_key = nil)
click to toggle source
# File lib/nurego/organization.rb, line 32 def feature_data(params = {}, api_key = nil) response, api_key = Nurego.request(:get, url + "/feature_data", api_key, params) Util.convert_to_nurego_object(response, api_key) end
instances()
click to toggle source
# File lib/nurego/organization.rb, line 6 def instances Instance.all({:organization => id }, @api_key) end
paymentmethod()
click to toggle source
# File lib/nurego/organization.rb, line 10 def paymentmethod PaymentMethod.all({:organization => id}, @api_key) end
subscriptions(params = {}, api_key = nil)
click to toggle source
# File lib/nurego/organization.rb, line 22 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
update_trial_period(params = {}, api_key = nil)
click to toggle source
:trial_days => total number of trial days :trial_months => total number of trial months exactly one of the trial_days | trial_months attributes should be passed. :plan_id => “plan guid” | plan guid
# File lib/nurego/organization.rb, line 49 def update_trial_period(params = {}, api_key = nil) response, api_key = Nurego.request(:post, url + '/update_trial_period', api_key, params) Util.convert_to_nurego_object(response, api_key) end
users(params = {}, api_key = nil)
click to toggle source
# File lib/nurego/organization.rb, line 27 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