Sha256: 9600eab3225455351af97cf3d70b3cf03ff9ca21047b46edaa804e1cc47c2a55

Contents?: true

Size: 316 Bytes

Versions: 11

Compression:

Stored size: 316 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

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