Sha256: d197c0b7cffce5143c4f366f8694f7ebe8eed02e5a35e00a9cfcc9fc8a0d7871

Contents?: true

Size: 1.05 KB

Versions: 27

Compression:

Stored size: 1.05 KB

Contents

module GoTransverseTractApi

  module Service

    class ServicePrice

      class << self

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

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

        #
        # @param {Date} start_date
        #
        def find_by_start_date start_date
          GoTransverseTractApi.get_response_for(self, {start_date: start_date})
        end

        #
        # @param {Date} end_date
        #
        def find_by_end_date end_date
          GoTransverseTractApi.get_response_for(self, {end_date: end_date})
        end

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

      end

    end

  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.1.10 lib/gotransverse-tract-api/service/service_price.rb
gotransverse-tract-api-0.1.9 lib/gotransverse-tract-api/service/service_price.rb
gotransverse-tract-api-0.1.8 lib/gotransverse-tract-api/service/service_price.rb
gotransverse-tract-api-0.1.7 lib/gotransverse-tract-api/service/service_price.rb
gotransverse-tract-api-0.1.6 lib/gotransverse-tract-api/service/service_price.rb
gotransverse-tract-api-0.1.5 lib/gotransverse-tract-api/service/service_price.rb
gotransverse-tract-api-0.1.4 lib/gotransverse-tract-api/service/service_price.rb