Class: RestPack::Service::Commands::List

Inherits:
RestPack::Service::Command show all
Defined in:
lib/restpack_service/commands/list.rb

Instance Attribute Summary

Attributes inherited from RestPack::Service::Command

#response

Instance Method Summary collapse

Methods inherited from RestPack::Service::Command

#Model, #Serializer, #field_error, inherited, #init, #run, #service_error, #status, #valid?

Instance Method Details

#executeObject



10
11
12
# File 'lib/restpack_service/commands/list.rb', line 10

def execute
  self.class.serializer_class.resource(inputs, scope)
end