Sha256: 11d72f1bf5ff2cb53be8d3fff5259b1dcc7e4b7d6558196fea2d1bf62773b9b9
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
module RestPack::Account::Service::Commands module Account class Get < RestPack::Service::Command required do integer :id integer :application_id end def execute scope = Models::Account.all scope = scope.where(application_id: application_id) result = Serializers::Account.resource(inputs, scope) if result[:accounts].empty? status :not_found else result end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restpack_account_service-0.0.3 | lib/restpack_account_service/commands/account/get.rb |