Class: Firekassa::Account

Inherits:
Client
  • Object
show all
Defined in:
lib/firekassa/account.rb

Overview

Site accounts API

Instance Method Summary collapse

Methods inherited from Client

#handle_error, #interpret_response, #send_request

Instance Method Details

#listObject



9
10
11
12
# File 'lib/firekassa/account.rb', line 9

def list
  path = "/api/v2/accounts"
  send_request(method: :get, path: path)
end

#show(id) ⇒ Object



14
15
16
17
# File 'lib/firekassa/account.rb', line 14

def show(id)
  path = "/api/v2/accounts/#{id}"
  send_request(method: :get, path: path)
end