Sha256: 890493fb34451ac06d5b8e9871fdecd783ea6a67165d19b41e9ae117713635a0

Contents?: true

Size: 1.44 KB

Versions: 1

Compression:

Stored size: 1.44 KB

Contents

module WhosGotDirt
  module Requests
    # Requests for relations.
    #
    # Many APIs support the parameters below. For API-specific parameters, visit
    # the API's request class.
    #
    # @example Find related entities by name (fuzzy match).
    #   "subject": [{
    #     "name~=": "John Smith"
    #   }]
    #
    # @example Find related people by birth date.
    #   "subject": [{
    #     "birth_date": "2010-01-01"
    #   }]
    #
    # @example Find related people with a birth date greater than or equal to a given value.
    #   "subject": [{
    #     "birth_date>=": "2010-01-03"
    #   }]
    #
    # @example Find related people with a birth date greater than a given value.
    #   "subject": [{
    #     "birth_date>": "2010-01-02"
    #   }]
    #
    # @example Find related people with a birth date less than or equal to a given value.
    #   "subject": [{
    #     "birth_date<=": "2010-01-04"
    #   }]
    #
    # @example Find related people with a birth date less than a given value.
    #   "subject": [{
    #     "birth_date<": "2010-01-05"
    #   }]
    #
    # @example Find related entities by address (fuzzy match).
    #   "subject": [{
    #     "contact_details": [{
    #       "type": "address",
    #       "value~=": "52 London"
    #     }]
    #   }]
    #
    # @example Limit the number of results.
    #   "limit": 5
    #
    # @example Paginate the results.
    #   "page": 2
    module Relation
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whos_got_dirt-0.0.5 lib/whos_got_dirt/requests/relation.rb