Sha256: b33762668af6e25ad6e99aade359cd289b23878a8714ea0ce44226b963b53362

Contents?: true

Size: 461 Bytes

Versions: 22

Compression:

Stored size: 461 Bytes

Contents

module Maestrano
  module API
    module Operation
      module List
        module ClassMethods
          def all(filters={}, api_token=nil)
            response, api_token = Maestrano::API::Operation::Base[self.preset].request(:get, url, api_token, filters)
            Util.convert_to_maestrano_object(response, api_token)
          end
        end

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
maestrano-0.12.1 lib/maestrano/api/operation/list.rb
maestrano-0.12.0 lib/maestrano/api/operation/list.rb