Sha256: 8c4c95a79d63c80d35c1c342919bf8238596a6f282c426e86d505aa3c292d110

Contents?: true

Size: 315 Bytes

Versions: 6

Compression:

Stored size: 315 Bytes

Contents

module Roqua
  module CoreApi
    # @api private
    class Person < ActiveInteraction::Base
      model :session, class: Sessions::AuthSession
      string :person_id

      def execute
        response = session.get "/people/#{person_id}"
        Models::Person.new(response['person'])
      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/person.rb
roqua-core-api-0.1.0 lib/roqua/core_api/person.rb
roqua-core-api-0.0.39 lib/roqua/core_api/person.rb
roqua-core-api-0.0.38 lib/roqua/core_api/person.rb
roqua-core-api-0.0.37 lib/roqua/core_api/person.rb
roqua-core-api-0.0.36 lib/roqua/core_api/person.rb