Sha256: c32c212971984b1c738cff42d24053a66446d9bca192856f23307c7de1747059

Contents?: true

Size: 316 Bytes

Versions: 20

Compression:

Stored size: 316 Bytes

Contents

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

      def execute
        response = session.get "/people/#{person_id}"
        Models::Person.new(response['person'])
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
roqua-core-api-0.0.35 lib/roqua/core_api/person.rb
roqua-core-api-0.0.32 lib/roqua/core_api/person.rb
roqua-core-api-0.0.31 lib/roqua/core_api/person.rb
roqua-core-api-0.0.30 lib/roqua/core_api/person.rb
roqua-core-api-0.0.29 lib/roqua/core_api/person.rb
roqua-core-api-0.0.28 lib/roqua/core_api/person.rb
roqua-core-api-0.0.27 lib/roqua/core_api/person.rb
roqua-core-api-0.0.26 lib/roqua/core_api/person.rb
roqua-core-api-0.0.25 lib/roqua/core_api/person.rb
roqua-core-api-0.0.24 lib/roqua/core_api/person.rb
roqua-core-api-0.0.22 lib/roqua/core_api/person.rb
roqua-core-api-0.0.21 lib/roqua/core_api/person.rb
roqua-core-api-0.0.20 lib/roqua/core_api/person.rb
roqua-core-api-0.0.19 lib/roqua/core_api/person.rb
roqua-core-api-0.0.18 lib/roqua/core_api/person.rb
roqua-core-api-0.0.17 lib/roqua/core_api/person.rb
roqua-core-api-0.0.16 lib/roqua/core_api/person.rb
roqua-core-api-0.0.15 lib/roqua/core_api/person.rb
roqua-core-api-0.0.14 lib/roqua/core_api/person.rb
roqua-core-api-0.0.13 lib/roqua/core_api/person.rb