Class: MC2P::ChangeResourceMixin

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

Overview

Allows send requests of change

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

#change(resource_id, data) ⇒ Object

Params:

resource_id

id to request

data

data used on the request

Returns: an object item class with the response of the server



284
285
286
287
288
# File 'lib/mixins.rb', line 284

def change(resource_id, data)
  _one_item('patch',
            data,
            resource_id)
end