Sha256: 90a1130ebea89570bde51127d45ae7d4d8e9ad23dc67bc2f5482aa321421a78f
Contents?: true
Size: 1.78 KB
Versions: 32
Compression:
Stored size: 1.78 KB
Contents
module GoTransverseTractApi module Service class ServiceResourceCategory class << self # # @param {Hash} options # def find_all options={} params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} eid # @param {Hash} options # def find_by_eid eid, options={} return nil unless eid.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {String} name # @param {Hash} options # def find_by_name name, options={} return nil unless name.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {String} type # @param {Hash} options # def find_by_type type, options={} return nil unless type.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({type: type}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Hash} service_resource_category # def get_service_resource_category(service_resource_category) svc_resource_category = { name: service_resource_category[:name], type: service_resource_category[:type], status: service_resource_category[:status], eid: service_resource_category[:eid] } svc_resource_category end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems