Sha256: d1dbf5c738e3a94a28b0615c6dd8d6efb987a2013a46faa6147596eb148d12c1

Contents?: true

Size: 427 Bytes

Versions: 9

Compression:

Stored size: 427 Bytes

Contents

module Octobat
  module APIOperations
    module List
      module ClassMethods
        def all(filters={}, opts={})
          api_key, headers = Util.parse_opts(opts)
          response, api_key = Octobat.request(:get, url, api_key, filters, headers)
          Util.convert_to_octobat_object(response, api_key)
        end
      end

      def self.included(base)
        base.extend(ClassMethods)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
octobat-0.0.10 lib/octobat/api_operations/list.rb
octobat-0.0.9 lib/octobat/api_operations/list.rb
octobat-0.0.8 lib/octobat/api_operations/list.rb
octobat-0.0.7 lib/octobat/api_operations/list.rb
octobat-0.0.6 lib/octobat/api_operations/list.rb
octobat-0.0.5 lib/octobat/api_operations/list.rb
octobat-0.0.4 lib/octobat/api_operations/list.rb
octobat-0.0.3 lib/octobat/api_operations/list.rb
octobat-0.0.2 lib/octobat/api_operations/list.rb