Class: JsonRpcObjects::V11::Alt::ServiceProcedureDescription
- Inherits:
-
WD::ServiceProcedureDescription
- Object
- Generic::Object
- WD::ServiceProcedureDescription
- JsonRpcObjects::V11::Alt::ServiceProcedureDescription
- Defined in:
- lib/json-rpc-objects/v11/alt/service-procedure-description.rb
Overview
Description of one procedure of the service.
Constant Summary collapse
- VERSION =
Holds link to its version module.
JsonRpcObjects::V11::Alt
- PARAMETER_DESCRIPTION_CLASS =
Indicates the service procedure description class.
JsonRpcObjects::V11::Alt::ProcedureParameterDescription
Instance Attribute Summary
Attributes inherited from WD::ServiceProcedureDescription
#idempotent, #name, #params, #return, #summary, #url
Attributes inherited from Generic::Object
Instance Method Summary collapse
-
#check! ⇒ Object
Checks correctness of the data.
Methods inherited from WD::ServiceProcedureDescription
Methods inherited from Generic::Object
create, #initialize, #output, parse, #serialize, #to_json, version
Constructor Details
This class inherits a constructor from JsonRpcObjects::Generic::Object
Instance Method Details
#check! ⇒ Object
Checks correctness of the data.
48 49 50 51 52 53 54 |
# File 'lib/json-rpc-objects/v11/alt/service-procedure-description.rb', line 48 def check! super() if @params.kind_of? Array and (not @params.all? { |v| v.type != JsonRpcObjects::V11::GenericTypes::Nil }) raise Exception::new("Nil return type isn't allowed for parameters.") end end |