Method: Views#create_view
- Defined in:
- lib/user/config/views.rb
#create_view(data) ⇒ Object
Create export.
Create an export with data.
Parameters
- data
-
(Hash) – Data to be submitted.
Example
data = {
title: 'New configuration',
slug: 'new-configuration',
object_model: 'Contact',
config_json: {}
}
@data = @cxf_user.create_export(data)
46 47 48 |
# File 'lib/user/config/views.rb', line 46 def create_view(data) @client.raw('post', '/config/views', nil, data_transform(data)) end |