Class: IbmCloudRest::Request
- Defined in:
- lib/ibm_cloud_rest/core/request.rb
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/requests/', uuid_batch_count = 1000) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(server = 'https://www.ibm.com', base_path = '/cloud/developer/api/rest/20090403/requests/', uuid_batch_count = 1000) ⇒ Request
Returns a new instance of Request.
4 5 6 |
# File 'lib/ibm_cloud_rest/core/request.rb', line 4 def initialize(server = 'https://www.ibm.com', base_path= '/cloud/developer/api/rest/20090403/requests/', 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/request.rb', line 3 def uri @uri end |
Instance Method Details
#get(id) ⇒ Object
7 8 9 |
# File 'lib/ibm_cloud_rest/core/request.rb', line 7 def get(id) IbmCloudRest.get @uri+id.to_s end |