Class: Wonde::MedicalConditions
- Defined in:
- lib/endpoints/medicalconditions.rb
Constant Summary collapse
- @@uri =
'medical-conditions/'
Instance Attribute Summary
Attributes inherited from Endpoints
#endpoint, #token, #uri, #version
Instance Method Summary collapse
-
#initialize(token, id = false) ⇒ MedicalConditions
constructor
A new instance of MedicalConditions.
Methods inherited from Endpoints
#all, #delete, #deleteRequest, #deleteUrl, #get, #getRequest, #getUrl, #post, #postRequest, #postUrl
Constructor Details
#initialize(token, id = false) ⇒ MedicalConditions
Returns a new instance of MedicalConditions.
4 5 6 7 8 9 |
# File 'lib/endpoints/medicalconditions.rb', line 4 def initialize(token, id=false) super(token, id) self.uri = @@uri self.uri = id + '/' + @@uri if id self.uri = self.uri.gsub("//", "/").chomp("/") end |