Sha256: 195bfd88eabef9f6d18de664cfcff337b39080d6a2385c3643427f7dc1054959

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 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.0.4 lib/gerry/client/changes.rb
gerry-0.0.3 lib/gerry/client/changes.rb