Class: Wes::Data::API::Showcase

Inherits:
Object
  • Object
show all
Extended by:
Base
Defined in:
lib/wes/data/api/showcase.rb

Class Method Summary collapse

Methods included from Base

add_state, apply_pagination, client, configuration, map_objects, routes

Class Method Details

.create(data) ⇒ Object



11
12
13
14
# File 'lib/wes/data/api/showcase.rb', line 11

def create(data)
  attributes = client.post(routes.showcase, data).first
  attributes.nil? ? nil : model_klass.new(attributes)
end