Class: Yookassa::Resources::Settings

Inherits:
Base
  • Object
show all
Defined in:
lib/yookassa/resources/settings.rb

Overview

REST resource for the +/v3/me+ endpoint (shop settings).

See Also:

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#create, entity_class, #find, #initialize, #list, resource_path

Constructor Details

This class inherits a constructor from Yookassa::Resources::Base

Instance Method Details

#retrieveEntities::Base

Retrieves the current shop settings and account info.

Raises:



13
14
15
16
# File 'lib/yookassa/resources/settings.rb', line 13

def retrieve
  data = request(:get, "me")
  Entities::Base.new(data)
end