Sha256: d712f3a6323df4edb47185721391700f1ca6778dc07de7d9e46c87a8e8f3fdcd

Contents?: true

Size: 1.01 KB

Versions: 28

Compression:

Stored size: 1.01 KB

Contents

module GoTransverseTractApi

  module Usage

    class RateTable

      class << self

        #
        # @param {Hash} options
        #
        def find_all options={}
          params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
          GoTransverseTractApi.get_response_for(self, params)
        end

        #
        # @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

28 entries across 28 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.14.0 lib/gotransverse-tract-api/usage/rate_table.rb
gotransverse-tract-api-0.13.0 lib/gotransverse-tract-api/usage/rate_table.rb
gotransverse-tract-api-0.12.0 lib/gotransverse-tract-api/usage/rate_table.rb
gotransverse-tract-api-0.11.2 lib/gotransverse-tract-api/usage/rate_table.rb
gotransverse-tract-api-0.11.1 lib/gotransverse-tract-api/usage/rate_table.rb
gotransverse-tract-api-0.11.0 lib/gotransverse-tract-api/usage/rate_table.rb
gotransverse-tract-api-0.10.0 lib/gotransverse-tract-api/usage/rate_table.rb
gotransverse-tract-api-0.9.2 lib/gotransverse-tract-api/usage/rate_table.rb