Sha256: 292f679a0b71686b6383321ae0741701a1111585b85bb203f9dfa2d83dbf9aa0

Contents?: true

Size: 340 Bytes

Versions: 6

Compression:

Stored size: 340 Bytes

Contents

module Roqua
  module CoreApi
    # @api private
    class People < ActiveInteraction::Base
      model :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

6 entries across 6 versions & 1 rubygems

Version Path
roqua-core-api-0.1.1 lib/roqua/core_api/people.rb
roqua-core-api-0.1.0 lib/roqua/core_api/people.rb
roqua-core-api-0.0.39 lib/roqua/core_api/people.rb
roqua-core-api-0.0.38 lib/roqua/core_api/people.rb
roqua-core-api-0.0.37 lib/roqua/core_api/people.rb
roqua-core-api-0.0.36 lib/roqua/core_api/people.rb