Sha256: 3d95106e15ad192edaf0b8efb1a10bf6287410b63b8dad608f5547312fc0850a

Contents?: true

Size: 1.58 KB

Versions: 32

Compression:

Stored size: 1.58 KB

Contents

module GoTransverseTractApi

  module Usage

    class UsageLookupTableEntry

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

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

        #
        # @param {String} key
        # @param {Hash} options
        #
        def find_by_key key, options={}
          return nil unless key.present?

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

        #
        # @param {String} value
        # @param {Hash} options
        #
        def find_by_value value, options={}
          return nil unless value.present?

          params ||= GoTransverseTractApi::ApiData.new.get_query_params({value: value}, 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/usage_lookup_table_entry.rb
gotransverse-tract-api-0.13.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.12.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.11.2 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.11.1 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.11.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.10.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.9.2 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.9.1 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.9.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.8.1 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.8.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb