Class: OpenEHR::CKMClient::CLI
- Inherits:
-
Thor
- Object
- Thor
- OpenEHR::CKMClient::CLI
- Includes:
- Thor::Actions
- Defined in:
- lib/openehr/ckm_client/cli.rb
Instance Method Summary collapse
- #get(archetype_id) ⇒ Object (also: #fetch)
- #help ⇒ Object
- #search(part_id) ⇒ Object
Instance Method Details
#get(archetype_id) ⇒ Object Also known as: fetch
11 12 13 |
# File 'lib/openehr/ckm_client/cli.rb', line 11 def get(archetype_id) create_file archetype_id+'.adl', soap_interface.fetch(archetype_id) end |
#help ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/openehr/ckm_client/cli.rb', line 24 def help puts <<USAGE Usage: ckmc <command> [<args>] Commands supported: get Retrieve archetype by archetype_id search query archetype by keyword help show this help USAGE end |
#search(part_id) ⇒ Object
19 20 21 |
# File 'lib/openehr/ckm_client/cli.rb', line 19 def search(part_id) puts soap_interface.search(part_id) end |