Sha256: 0ff0bb65cb8897f1300d6aa48d1436f50c940f42400ffd60be734a9148dc7450
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
module Nurego class Customer < APIResource include Nurego::APIOperations::List def self.me(api_key = nil) response, api_key = Nurego.request(:get, me_url, api_key) Util.convert_to_nurego_object(response, api_key) end def organization Nurego::Organization.retrieve(id: self[:organization_id]) end def self.me_url '/v1/customers/me' end def self.update_plan(plan_id) response, api_key = Nurego.request(:put, "/v1/customers/plan", nil, { :plan_id => plan_id }) Util.convert_to_nurego_object(response, api_key) end def self.cancel_account response, api_key = Nurego.request(:put, "/v1/customers/cancel", nil) Util.convert_to_nurego_object(response, api_key) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nurego-1.1.18 | lib/nurego/customer.rb |