Module: Ribose::Actions::All

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from Base

included

Instance Method Details

#allArray <Sawyer::Resource>

List Resources

Retrieve the list of resources via :get and then extract the the root element from the response object.

Returns:

  • (Array <Sawyer::Resource>)


14
15
16
17
# File 'lib/ribose/actions/all.rb', line 14

def all
  response = Ribose::Request.get(resources_path, custom_option)
  extract_root(response) || response
end