Sha256: 45b02032ffebecf01d319651b367599b812d347a346cfa27d1aec10345cd2907

Contents?: true

Size: 1.16 KB

Versions: 32

Compression:

Stored size: 1.16 KB

Contents

module GoTransverseTractApi

  module Usage

    class ServiceUsageRule

      class << self

        #
        # @param {Long} eid
        # @param {Hash} options
        #
        def 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 {Long} service_eid
        # @param {Hash} options
        #
        def find_by_service_eid service_eid, options={}
          return nil unless service_eid.present?

          params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_eid: service_eid}, options)
          GoTransverseTractApi.get_response_for(self, params)
        end

        #
        # @param {String} status
        # @param {Hash} options
        #
        def 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

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.14.0 lib/gotransverse-tract-api/usage/service_usage_rule.rb
gotransverse-tract-api-0.13.0 lib/gotransverse-tract-api/usage/service_usage_rule.rb
gotransverse-tract-api-0.12.0 lib/gotransverse-tract-api/usage/service_usage_rule.rb
gotransverse-tract-api-0.11.2 lib/gotransverse-tract-api/usage/service_usage_rule.rb
gotransverse-tract-api-0.11.1 lib/gotransverse-tract-api/usage/service_usage_rule.rb
gotransverse-tract-api-0.11.0 lib/gotransverse-tract-api/usage/service_usage_rule.rb
gotransverse-tract-api-0.10.0 lib/gotransverse-tract-api/usage/service_usage_rule.rb
gotransverse-tract-api-0.9.2 lib/gotransverse-tract-api/usage/service_usage_rule.rb
gotransverse-tract-api-0.9.1 lib/gotransverse-tract-api/usage/service_usage_rule.rb
gotransverse-tract-api-0.9.0 lib/gotransverse-tract-api/usage/service_usage_rule.rb
gotransverse-tract-api-0.8.1 lib/gotransverse-tract-api/usage/service_usage_rule.rb
gotransverse-tract-api-0.8.0 lib/gotransverse-tract-api/usage/service_usage_rule.rb