Class: LeanMicrosoftGraph::Client
- Inherits:
-
Object
- Object
- LeanMicrosoftGraph::Client
- Defined in:
- lib/lean_microsoft_graph/client.rb
Instance Method Summary collapse
-
#initialize(tenant_id:, client_id:, client_secret:, adapter: Faraday.default_adapter, stubs: nil) ⇒ Client
constructor
A new instance of Client.
- #users ⇒ Object
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
#users ⇒ Object
13 14 15 |
# File 'lib/lean_microsoft_graph/client.rb', line 13 def users Resources::UsersResource.new(connection) end |