Class: Yoomoney::Resources::Me
- Inherits:
-
Object
- Object
- Yoomoney::Resources::Me
- Defined in:
- lib/yoomoney/resources/me.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Me
constructor
private
A new instance of Me.
-
#retrieve(on_behalf_of: nil, request_options: {}) ⇒ Yoomoney::Models::MeRetrieveResponse
Получение настроек магазина или шлюза.
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.
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
Получение настроек магазина или шлюза
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/yoomoney/resources/me.rb', line 16 def retrieve(params = {}) parsed, = Yoomoney::MeRetrieveParams.dump_request(params) @client.request( method: :get, path: "me", query: parsed, model: Yoomoney::Models::MeRetrieveResponse, options: ) end |