Class: Grist::Client
- Inherits:
-
Object
- Object
- Grist::Client
- Defined in:
- lib/grist/client.rb
Instance Method Summary collapse
- #connection ⇒ Object
-
#initialize(url: nil, token: nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Endpoint::Workspace
#create, #delete, #list_workspace_users, #manage_workspace_access, #update, #workspace, #workspaces
Methods included from Endpoint::Organization
#list_users_with_access, #manage_access, #organization, #organizations, #update
Methods included from HTTP
#conn, #destroy, #get, #patch, #post, #put
Constructor Details
#initialize(url: nil, token: nil) ⇒ Client
Returns a new instance of Client.
11 12 13 14 |
# File 'lib/grist/client.rb', line 11 def initialize(url: nil, token: nil) @url = url @token = token end |
Instance Method Details
#connection ⇒ Object
16 17 18 |
# File 'lib/grist/client.rb', line 16 def connection @connection ||= conn end |