Class: Gemfire::PendingApplicationCodes

Inherits:
Shared::MutableCollection show all
Defined in:
lib/vas/gemfire/pending_application_codes.rb

Overview

Used to enumerate, create, and delete a cache server’s pending application code.

Instance Attribute Summary

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::MutableCollection

#create_image

Methods inherited from Shared::Collection

#each, #reload

Constructor Details

#initialize(location, client) ⇒ PendingApplicationCodes

Returns a new instance of PendingApplicationCodes.



23
24
25
# File 'lib/vas/gemfire/pending_application_codes.rb', line 23

def initialize(location, client)
  super(location, client, 'pending-application-code', PendingApplicationCode)
end

Instance Method Details

#create(image) ⇒ ApplicationCode

Creates a new pending application code

Parameters:

Returns:



32
33
34
# File 'lib/vas/gemfire/pending_application_codes.rb', line 32

def create(image)
  super({:image => image.location})
end