Sha256: 191537b7d91b369d8fa722c24ee18a1edff297b18a139d622c332586a127b310

Contents?: true

Size: 341 Bytes

Versions: 11

Compression:

Stored size: 341 Bytes

Contents

module Roqua
  module CoreApi
    # @api private
    class People < ActiveInteraction::Base
      object :session, class: Sessions::AuthSession
      string :dossier_id

      def execute
        response = session.get "/dossiers/#{dossier_id}/people"
        response["people"].map { |p| Models::Person.new(p) }
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
roqua-core-api-0.7.0 lib/roqua/core_api/people.rb
roqua-core-api-0.6.0 lib/roqua/core_api/people.rb
roqua-core-api-0.5.0 lib/roqua/core_api/people.rb
roqua-core-api-0.4.0 lib/roqua/core_api/people.rb
roqua-core-api-0.3.1 lib/roqua/core_api/people.rb
roqua-core-api-0.3.0 lib/roqua/core_api/people.rb
roqua-core-api-0.2.4 lib/roqua/core_api/people.rb
roqua-core-api-0.2.3 lib/roqua/core_api/people.rb
roqua-core-api-0.2.2 lib/roqua/core_api/people.rb
roqua-core-api-0.2.1 lib/roqua/core_api/people.rb
roqua-core-api-0.2.0 lib/roqua/core_api/people.rb