Sha256: 85e64896753c127f2e41930aa24d23b3a8439e2c982a987bf7ff3bec98e4d86e

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

module Commands::Groups::Group
  class Get < RestPack::Service::Command
    required do
      string :id
      integer :application_id
    end

    optional do
      string :include
    end

    def execute
      result = Serializers::Groups::Group.resource(inputs)

      if result[:groups].empty?
        status :not_found
      else
        result
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
restpack_group_service-0.0.8 lib/restpack_group_service/commands/group/get.rb