module HyperTrack::ApiOperations::Common::Get
Public Instance Methods
get(path, params, required_params=[])
click to toggle source
# File lib/hypertrack/api_operations/common/get.rb, line 6 def get(path, params, required_params=[]) if HyperTrack::ParamsValidator.valid_args?(params, required_params, self.class::VALID_ATTRIBUTE_VALUES) api_path = "#{self.class::API_BASE_PATH}#{self.id}/" + path result = HyperTrack::ApiClient.fetch(api_path, params) end end
get_list(path, params, required_params=[])
click to toggle source
# File lib/hypertrack/api_operations/common/get.rb, line 13 def get_list(path, params, required_params=[]) if HyperTrack::ParamsValidator.valid_args?(params, required_params, self.class::VALID_ATTRIBUTE_VALUES) api_path = "#{self.class::API_BASE_PATH}#{self.id}/" + path result = HyperTrack::ApiClient.fetch(api_path, params) end end