Sha256: f9a48d75a07406b9d5a91f96edda7e6677497674c7dd8ee70b2c2e50b707766c
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
module GoTransverseTractApi module Product class DiscountCategory # # @param {Hash} options # def self.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 self.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 self.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} status # @param {Hash} options # def self.find_by_status status, options={} return nil unless status.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options) GoTransverseTractApi.get_response_for(self, params) 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/product/discount_category.rb |
gotransverse-tract-api-0.8.0 | lib/gotransverse-tract-api/product/discount_category.rb |