Class: Sqlfire::LocatorInstances
- Inherits:
-
Shared::MutableCollection
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- Sqlfire::LocatorInstances
- Defined in:
- lib/vas/sqlfire/locator_instances.rb
Overview
Used to enumerate, create, and delete locator instances.
Instance Attribute Summary
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#create(installation, name, options = {}) ⇒ LocatorInstance
Creates a new locator instance.
-
#initialize(location, client) ⇒ LocatorInstances
constructor
A new instance of LocatorInstances.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
#initialize(location, client) ⇒ LocatorInstances
Returns a new instance of LocatorInstances.
37 38 39 |
# File 'lib/vas/sqlfire/locator_instances.rb', line 37 def initialize(location, client) super(location, client, 'locator-group-instances', LocatorInstance) end |
Instance Method Details
#create(installation, name, options = {}) ⇒ LocatorInstance
Creates a new locator instance
69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/vas/sqlfire/locator_instances.rb', line 69 def create(installation, name, = {}) payload = {:installation => installation.location, :name => name} .each { |key, value| if (CREATE_PAYLOAD_KEYS.include?(key)) payload[key] = value end } super(payload, 'locator-group-instance') end |