Module: Ribose::Actions::Fetch
- Extended by:
- Base
- Included in:
- Ribose::AppRelation, Calendar, ConnectionInvitation, Conversation, JoinSpaceRequest, MemberRole, Profile, Setting, Space, SpaceFile, Wiki
- Defined in:
- lib/ribose/actions/fetch.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#fetch ⇒ Sawyer::Resource
Fetch A Resource.
Methods included from Base
Instance Method Details
#fetch ⇒ Sawyer::Resource
Fetch A Resource
Retrieve the details for a specific resource via HTTP GET and retrurns those as ‘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 |