Class: Yoomoney::Resources::Me

Inherits:
Object
  • Object
show all
Defined in:
lib/yoomoney/resources/me.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Me

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 Me.

Parameters:



30
31
32
# File 'lib/yoomoney/resources/me.rb', line 30

def initialize(client:)
  @client = client
end

Instance Method Details

#retrieve(on_behalf_of: nil, request_options: {}) ⇒ Yoomoney::Models::MeRetrieveResponse

Получение настроек магазина или шлюза

Parameters:

Returns:

See Also:



16
17
18
19
20
21
22
23
24
25
# File 'lib/yoomoney/resources/me.rb', line 16

def retrieve(params = {})
  parsed, options = Yoomoney::MeRetrieveParams.dump_request(params)
  @client.request(
    method: :get,
    path: "me",
    query: parsed,
    model: Yoomoney::Models::MeRetrieveResponse,
    options: options
  )
end