Sha256: d26141a88a345e5049cc3aed69d7a8eb0aba8e25ff4cf4abc1aacedf22413808

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 Bytes

Contents

module GoTransverseTractApi

  module Product

    class PriceList

      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 {Hash} price_list
      #
      def self.get_price_list price_list
        {
          name: price_list[:name],
          eid: price_list[:eid]
        }
      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/price_list.rb
gotransverse-tract-api-0.5.1 lib/gotransverse-tract-api/product/price_list.rb