Sha256: f35ac8085fa6360f5a048965560305ab30260ee206a8706822166cc45799961d

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

module GoTransverseTractApi

  module Product

    class DiscountCategory

      def self.find_all
        GoTransverseTractApi.get_response_for(self)
      end

      #
      # @param {Long} eid
      #
      def self.find_by_eid eid
        GoTransverseTractApi.get_response_for(self, {eid: eid})
      end

      #
      # @param {String} name
      #
      def self.find_by_name name
        GoTransverseTractApi.get_response_for(self, {name: name})
      end

      #
      # @param {String} status
      #
      def self.find_by_status status
        GoTransverseTractApi.get_response_for(self, {status: status})
      end

    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.5.2 lib/gotransverse-tract-api/product/discount_category.rb
gotransverse-tract-api-0.5.1 lib/gotransverse-tract-api/product/discount_category.rb