Class: Zm::Client::LicensesCollection

Inherits:
Object
  • Object
show all
Defined in:
lib/zm/client/license/licenses_collection.rb

Overview

Class Collection [Domain]

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ LicensesCollection

Returns a new instance of LicensesCollection.



7
8
9
# File 'lib/zm/client/license/licenses_collection.rb', line 7

def initialize(parent)
  @parent = parent
end

Instance Method Details

#findObject



11
12
13
14
15
# File 'lib/zm/client/license/licenses_collection.rb', line 11

def find
  soap_request = SoapElement.admin(SoapAdminConstants::GET_LICENSE_REQUEST)
  entry = sac.invoke(soap_request)[:GetLicenseResponse][:license].first
  LicenseJsnsInitializer.create(@parent, entry)
end