Class: Amocrm::Resources::Account
- Inherits:
-
Object
- Object
- Amocrm::Resources::Account
- Defined in:
- lib/amocrm/resources/account.rb
Instance Method Summary collapse
-
#get(with: nil, request_options: {}) ⇒ Amocrm::Models::AccountGetResponse::AccountInfo, Amocrm::Models::AccountGetResponse::Problem
Get account info.
-
#initialize(client:) ⇒ Account
constructor
private
A new instance of Account.
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.
32 33 34 |
# File 'lib/amocrm/resources/account.rb', line 32 def initialize(client:) @client = client end |
Instance Method Details
#get(with: nil, request_options: {}) ⇒ Amocrm::Models::AccountGetResponse::AccountInfo, Amocrm::Models::AccountGetResponse::Problem
Get account info.
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/amocrm/resources/account.rb', line 17 def get(params = {}) parsed, = Amocrm::AccountGetParams.dump_request(params) query = Amocrm::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "api/v4/account", query: query, model: Amocrm::Models::AccountGetResponse, options: ) end |