Sha256: 5009440288c788b2bc272fc9bcceddedc0b139beb05f9d0c8c160fa24505188d

Contents?: true

Size: 1022 Bytes

Versions: 27

Compression:

Stored size: 1022 Bytes

Contents

module GoTransverseTractApi

  module Service

    class ServicePeriod

      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 {Boolean} closed
        #
        def find_by_closed closed
          GoTransverseTractApi.get_response_for(self, {closed: closed})
        end

      end

    end

  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.5.2 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.5.1 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.5.0 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.4.3 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.4.2 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.4.1 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.4.0 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.3.4 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.3.3 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.3.2 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.3.1 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.3.0 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.2.5 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.2.4 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.2.3 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.2.2 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.2.1 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.2.0 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.1.12 lib/gotransverse-tract-api/service/service_period.rb
gotransverse-tract-api-0.1.11 lib/gotransverse-tract-api/service/service_period.rb