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.24.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.23.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.22.1 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.22.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.21.1 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.21.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.20.3 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.20.2 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.20.1 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.20.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.19.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.18.3 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.18.2 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.18.1 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.18.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.17.2 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.17.1 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.17.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.16.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb
gotransverse-tract-api-0.15.0 lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb