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-3.7.2 lib/intercom/service/admin.rb
intercom-3.7.1 lib/intercom/service/admin.rb
intercom-3.7.0 lib/intercom/service/admin.rb
intercom-3.6.2 lib/intercom/service/admin.rb
intercom-3.6.1 lib/intercom/service/admin.rb
intercom-3.6.0 lib/intercom/service/admin.rb
intercom-3.5.26 lib/intercom/service/admin.rb
intercom-3.5.25 lib/intercom/service/admin.rb
intercom-3.5.24 lib/intercom/service/admin.rb
intercom-3.5.23 lib/intercom/service/admin.rb
intercom-3.5.22 lib/intercom/service/admin.rb
intercom-3.5.21 lib/intercom/service/admin.rb
intercom-3.5.20 lib/intercom/service/admin.rb
intercom-3.5.19 lib/intercom/service/admin.rb
intercom-3.5.17 lib/intercom/service/admin.rb
intercom-3.5.16 lib/intercom/service/admin.rb
intercom-3.5.15 lib/intercom/service/admin.rb
intercom-3.5.14 lib/intercom/service/admin.rb
intercom-3.5.12 lib/intercom/service/admin.rb
intercom-3.5.11 lib/intercom/service/admin.rb