Module: Ribose::Actions::Fetch

Extended by:
Base
Included in:
Ribose::AppRelation, Calendar, ConnectionInvitation, Conversation, Event, FileVersion, JoinSpaceRequest, MemberRole, Profile, Setting, Space, SpaceFile, Wiki
Defined in:
lib/ribose/actions/fetch.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from Base

included

Instance Method Details

#fetchSawyer::Resource

Fetch A Resource

Retrieve the details for a specific resource via HTTP GET and retrurns those as ‘Sawyer::Resource`.

Returns:

  • (Sawyer::Resource)


15
16
17
18
# File 'lib/ribose/actions/fetch.rb', line 15

def fetch
  response = Request.get(resource_path, custom_option)
  extract_resource(response) || response
end