Sha256: eb9356b0f1ed655188d362922f4f3b298f3912ba849771479bd7f6d003445158
Contents?: true
Size: 1.93 KB
Versions: 2
Compression:
Stored size: 1.93 KB
Contents
module GoTransverseTractApi module Service class ServicePrice class << self # # @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 {Long} service_eid # @param {Hash} options # def find_by_service_eid service_eid, options={} return nil unless service_eid.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_eid: service_eid}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Date} start_date # @param {Hash} options # def find_by_start_date start_date, options={} return nil unless start_date.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({start_date: start_date}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Date} end_date # @param {Hash} options # def find_by_end_date end_date, options={} return nil unless end_date.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({end_date: end_date}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} recurrence_period # @param {Hash} options # def find_by_recurrence_period recurrence_period, options={} return nil unless recurrence_period.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({recurrence_period: recurrence_period}, options) GoTransverseTractApi.get_response_for(self, params) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gotransverse-tract-api-0.8.1 | lib/gotransverse-tract-api/service/service_price.rb |
gotransverse-tract-api-0.8.0 | lib/gotransverse-tract-api/service/service_price.rb |