Class: MC2P::CreateResourceMixin

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

Overview

Allows send requests of create

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

#create(data) ⇒ Object

Params:

data

data used on the request

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



272
273
274
275
# File 'lib/mixins.rb', line 272

def create(data)
  _one_item('post',
            data)
end