Class: MC2P::DetailOnlyResourceMixin
- Inherits:
-
ResourceMixin
- Object
- ResourceMixin
- MC2P::DetailOnlyResourceMixin
- Defined in:
- lib/mixins.rb
Overview
Allows send requests of detail
Direct Known Subclasses
Instance Method Summary collapse
-
#detail(resource_id) ⇒ Object
- Params:
resource_id
-
id to request Returns: an object item class with the response of the server.
- Params:
Methods inherited from ResourceMixin
#_one_item, #detail_url, #initialize
Constructor Details
This class inherits a constructor from MC2P::ResourceMixin
Instance Method Details
#detail(resource_id) ⇒ Object
Params:
resource_id
-
id to request
Returns: an object item class with the response of the server
244 245 246 247 248 |
# File 'lib/mixins.rb', line 244 def detail(resource_id) _one_item('get', nil, resource_id) end |