Class: LeanMicrosoftGraph::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/lean_microsoft_graph/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(tenant_id:, client_id:, client_secret:, adapter: Faraday.default_adapter, stubs: nil) ⇒ Client

Returns a new instance of Client.



5
6
7
8
9
10
11
# File 'lib/lean_microsoft_graph/client.rb', line 5

def initialize(tenant_id:, client_id:, client_secret:, adapter: Faraday.default_adapter, stubs: nil)
  @tenant_id = tenant_id
  @client_id = client_id
  @client_secret = client_secret
  @adapter = adapter
  @stubs = stubs # Stubs for testing purpouses
end

Instance Method Details

#usersObject



13
14
15
# File 'lib/lean_microsoft_graph/client.rb', line 13

def users
  Resources::UsersResource.new(connection)
end