Sha256: ac838a7981f71ae2befd135f57d3daf34b009726d79930961d77af1bb42a31ba

Contents?: true

Size: 521 Bytes

Versions: 43

Compression:

Stored size: 521 Bytes

Contents

require 'intercom/service/base_service'
require 'intercom/api_operations/list'
require 'intercom/api_operations/find'

module Intercom
  module Service
    class Admin < BaseService
      include ApiOperations::List
      include ApiOperations::Find

      def collection_class
        Intercom::Admin
      end

      def me
        response = @client.get("/me", {})
        raise Intercom::HttpError.new('Http Error - No response entity returned') unless response
        from_api(response)
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
intercom-4.2.1 lib/intercom/service/admin.rb
intercom-4.2.0 lib/intercom/service/admin.rb
intercom-4.1.3 lib/intercom/service/admin.rb
intercom-4.1.2 lib/intercom/service/admin.rb
intercom-4.1.1 lib/intercom/service/admin.rb
intercom-4.1.0 lib/intercom/service/admin.rb
intercom-4.0.1 lib/intercom/service/admin.rb
intercom-4.0.0 lib/intercom/service/admin.rb
intercom-3.9.5 lib/intercom/service/admin.rb
intercom-3.9.4 lib/intercom/service/admin.rb
intercom-3.9.3 lib/intercom/service/admin.rb
intercom-3.9.2 lib/intercom/service/admin.rb
intercom-3.9.0 lib/intercom/service/admin.rb
intercom-3.8.1 lib/intercom/service/admin.rb
intercom-3.8.0 lib/intercom/service/admin.rb
intercom-3.7.7 lib/intercom/service/admin.rb
intercom-3.7.6 lib/intercom/service/admin.rb
intercom-3.7.5 lib/intercom/service/admin.rb
intercom-3.7.4 lib/intercom/service/admin.rb
intercom-3.7.3 lib/intercom/service/admin.rb