Class: OpenEHR::CKMClient::SOAPInterface
- Inherits:
-
Object
- Object
- OpenEHR::CKMClient::SOAPInterface
- Defined in:
- lib/openehr/ckm_client/soap_interface.rb
Instance Attribute Summary collapse
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
Instance Method Summary collapse
- #fetch(id) ⇒ Object
-
#initialize(params) ⇒ SOAPInterface
constructor
A new instance of SOAPInterface.
- #search(partial_id) ⇒ Object
Constructor Details
#initialize(params) ⇒ SOAPInterface
Returns a new instance of SOAPInterface.
9 10 11 12 |
# File 'lib/openehr/ckm_client/soap_interface.rb', line 9 def initialize(params) @repository = params[:repository] || CKM_REPOSITORY @log_level = params[:verbose] ? :debug : :fatal end |
Instance Attribute Details
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
7 8 9 |
# File 'lib/openehr/ckm_client/soap_interface.rb', line 7 def repository @repository end |
Instance Method Details
#fetch(id) ⇒ Object
14 15 16 |
# File 'lib/openehr/ckm_client/soap_interface.rb', line 14 def fetch(id) soap_driver(@repository).get_adl_by_id(id) end |
#search(partial_id) ⇒ Object
18 19 20 |
# File 'lib/openehr/ckm_client/soap_interface.rb', line 18 def search(partial_id) soap_driver(@repository).get_archetypes_by_partial_id(partial_id) end |