Class: Courier::Resources::Users

Inherits:
Object
  • Object
show all
Defined in:
lib/courier/resources/users.rb,
lib/courier/resources/users/tokens.rb,
lib/courier/resources/users/tenants.rb,
lib/courier/resources/users/preferences.rb

Defined Under Namespace

Classes: Preferences, Tenants, Tokens

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Users

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Users.

Parameters:



18
19
20
21
22
23
# File 'lib/courier/resources/users.rb', line 18

def initialize(client:)
  @client = client
  @preferences = Courier::Resources::Users::Preferences.new(client: client)
  @tenants = Courier::Resources::Users::Tenants.new(client: client)
  @tokens = Courier::Resources::Users::Tokens.new(client: client)
end

Instance Attribute Details

#preferencesCourier::Resources::Users::Preferences (readonly)



7
8
9
# File 'lib/courier/resources/users.rb', line 7

def preferences
  @preferences
end

#tenantsCourier::Resources::Users::Tenants (readonly)



10
11
12
# File 'lib/courier/resources/users.rb', line 10

def tenants
  @tenants
end

#tokensCourier::Resources::Users::Tokens (readonly)



13
14
15
# File 'lib/courier/resources/users.rb', line 13

def tokens
  @tokens
end