Class: CPEE::Instantiation::HandleInstance
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Instantiation::HandleInstance
- Includes:
- Helpers
- Defined in:
- lib/cpee/instantiation.rb
Overview
}}}
Instance Method Summary collapse
Methods included from Helpers
Instance Method Details
#response ⇒ Object
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/cpee/instantiation.rb', line 205 def response cpee = @h['X_CPEE'] || @a[0] selfurl = @a[1] cblist = @a[2] instance = @p[1].value srv = Riddl::Client.new(cpee, cpee + "?riddl-description") res = srv.resource("/#{instance}/properties/values/attributes/uuid") status, response = res.get if status >= 200 && status < 300 uuid = XML::Smart::string(response.first.value).root.text handle_data cpee, instance, @p[2]&.value handle_waiting cpee, instance, uuid, @p[0].value, selfurl, cblist handle_starting cpee, instance, @p[0].value return Riddl::Parameter::Simple.new("url",cpee + instance) end end |