Class: ModerationAPI::Resources::Account
- Inherits:
-
Object
- Object
- ModerationAPI::Resources::Account
- Defined in:
- lib/moderation_api/resources/account.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Account
constructor
private
A new instance of Account.
-
#list(request_options: {}) ⇒ ModerationAPI::Models::AccountListResponse
Get account details.
Constructor Details
#initialize(client:) ⇒ Account
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 Account.
27 28 29 |
# File 'lib/moderation_api/resources/account.rb', line 27 def initialize(client:) @client = client end |
Instance Method Details
#list(request_options: {}) ⇒ ModerationAPI::Models::AccountListResponse
Get account details
15 16 17 18 19 20 21 22 |
# File 'lib/moderation_api/resources/account.rb', line 15 def list(params = {}) @client.request( method: :get, path: "account", model: ModerationAPI::Models::AccountListResponse, options: params[:request_options] ) end |