Module: Ribose::Actions::Update

Extended by:
Base
Included in:
ConnectionInvitation, Conversation, Event, JoinSpaceRequest, Message, Profile, Setting, Space, SpaceFile, SpaceInvitation, Wiki
Defined in:
lib/ribose/actions/update.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from Base

included

Instance Method Details

#updateSawyer::Resource

Update a resource

Returns:

  • (Sawyer::Resource)

    Update resource response



11
12
13
14
# File 'lib/ribose/actions/update.rb', line 11

def update
  response = update_resource
  response[resource] || response
end