Class: Zm::Client::LicensesCollection
- Inherits:
-
Object
- Object
- Zm::Client::LicensesCollection
- Defined in:
- lib/zm/client/license/licenses_collection.rb
Overview
Class Collection [Domain]
Instance Method Summary collapse
- #find ⇒ Object
-
#initialize(parent) ⇒ LicensesCollection
constructor
A new instance of LicensesCollection.
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
#find ⇒ Object
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 |