Sha256: 8844eb9131ddf4793625c8f1212e4a020f386f8db9a92ecca01750c6a3b0a105

Contents?: true

Size: 786 Bytes

Versions: 4

Compression:

Stored size: 786 Bytes

Contents

module GoTransverseTractApi

  module Usage

    class RateTable

      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 {String} name
        # @param {Hash} options
        #
        def find_by_name name, options={}
          return nil unless name.present?

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

      end

    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.9.1 lib/gotransverse-tract-api/usage/rate_table.rb
gotransverse-tract-api-0.9.0 lib/gotransverse-tract-api/usage/rate_table.rb
gotransverse-tract-api-0.8.1 lib/gotransverse-tract-api/usage/rate_table.rb
gotransverse-tract-api-0.8.0 lib/gotransverse-tract-api/usage/rate_table.rb