lib/redrax/files.rb
def list(container_name, options = {})
      validate_path_elements(container_name)

      resp = client.request(
        method:   :get,
        path:     container_name,
        params:   options,
        expected: (200..299)
      )
      PaginatedFiles.new(
        resp.map { |f| Redrax::File.from_hash(f) },
        self,
        container_name,
        options
      )
    end
# Queries for all of the {File}s matching the query.
# NOTE: the API documents some default limitations for this API call,
# e.g., the maximum number of {File}s to return in a single call.
# @param container_name [String] Name of the container to inspect
# @return [PaginatedFiles] An Array of {File}s that supports 
# pagination via the API
Queries for all of the {File}s matching the query.
NOTE: the API documents some default limitations for this API call,
e.g., the maximum number of {File}s to return in a single call.
Queries for all of the { File } s matching the query . NOTE : the API documents some default limitations for this API call e . g . the maximum number of { File } s to return in a single call .
def list(container_name, options = {})
      validate_path_elements(container_name)
      resp = client.request(
        method:   :get,
        path:     container_name,
        params:   options,
        expected: (200..299)
      )
      PaginatedFiles.new(
        resp.map { |f| Redrax::File.from_hash(f) },
        self,
        container_name,
        options
      )
    end
def list ( container_name , options = { } ) validate_path_elements ( container_name ) resp = client . request ( method : :get , path : container_name , params : options , expected : ( 200 .. 299 ) ) PaginatedFiles . new ( resp . map { | f | Redrax :: File . from_hash ( f ) } , self , container_name , options ) end
Queries for all of the {File}s matching the query.
Queries for all of the { File } s matching the query .
An Array of {File}s that supports pagination via the API
An Array of { File } s that supports pagination via the API
PaginatedFiles
container_name
Name of the container to inspect
Name of the container to inspect
options