Class: MC2P::DetailOnlyResourceMixin

Inherits:
ResourceMixin show all
Defined in:
lib/mixins.rb

Overview

Allows send requests of detail

Direct Known Subclasses

ReadOnlyResourceMixin

Instance Method Summary collapse

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