Class: IbmCloudRest::Key
Instance Attribute Summary collapse
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
- #get(id) ⇒ Object
-
#initialize(server = 'https://www.ibm.com', base_path = '/cloud/developer/api/rest/20090403/keys/', uuid_batch_count = 1000) ⇒ Key
constructor
A new instance of Key.
Constructor Details
#initialize(server = 'https://www.ibm.com', base_path = '/cloud/developer/api/rest/20090403/keys/', uuid_batch_count = 1000) ⇒ Key
Returns a new instance of Key.
4 5 6 |
# File 'lib/ibm_cloud_rest/core/key.rb', line 4 def initialize(server = 'https://www.ibm.com', base_path= '/cloud/developer/api/rest/20090403/keys/', uuid_batch_count = 1000) @uri = server+base_path end |
Instance Attribute Details
#uri ⇒ Object
Returns the value of attribute uri.
3 4 5 |
# File 'lib/ibm_cloud_rest/core/key.rb', line 3 def uri @uri end |
Instance Method Details
#get(id) ⇒ Object
7 8 9 |
# File 'lib/ibm_cloud_rest/core/key.rb', line 7 def get(id) IbmCloudRest.get @uri+id.to_s end |