Class: EInvoiceAPI::Resources::Me
- Inherits:
-
Object
- Object
- EInvoiceAPI::Resources::Me
- Defined in:
- lib/e_invoice_api/resources/me.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Me
constructor
private
A new instance of Me.
-
#retrieve(request_options: {}) ⇒ EInvoiceAPI::Models::MeRetrieveResponse
Retrieve information about your account.
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.
27 28 29 |
# File 'lib/e_invoice_api/resources/me.rb', line 27 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(request_options: {}) ⇒ EInvoiceAPI::Models::MeRetrieveResponse
Retrieve information about your account.
15 16 17 18 19 20 21 22 |
# File 'lib/e_invoice_api/resources/me.rb', line 15 def retrieve(params = {}) @client.request( method: :get, path: "api/me/", model: EInvoiceAPI::Models::MeRetrieveResponse, options: params[:request_options] ) end |