Sha256: 69c0f8935e323a2f8fe31f9dd72a7672f458e4a422e67736e918ebe6523a2cd3

Contents?: true

Size: 411 Bytes

Versions: 2

Compression:

Stored size: 411 Bytes

Contents

module Gerry
  class Client
    module Changes
      # Get changes visible to the caller.
      #
      # @param [Array] options the query parameters.
      # @return [Hash] the changes.
      def changes(options = [])
        url = '/changes/'

        if options.empty?
          return get(url)
        end

        options = map_options(options)
        get("#{url}?#{options}")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gerry-0.1.1 lib/gerry/client/changes.rb
gerry-0.1.0 lib/gerry/client/changes.rb