Class: Metabase::Client
- Inherits:
-
Object
- Object
- Metabase::Client
- Includes:
- Connection, Endpoint
- Defined in:
- lib/metabase/client.rb
Instance Method Summary collapse
-
#initialize(url:, username: nil, password: nil, token: nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Endpoint::XRay
Methods included from Endpoint::Util
Methods included from Endpoint::User
#create_user, #current_user, #users
Methods included from Endpoint::Table
Methods included from Endpoint::Setup
Methods included from Endpoint::Setting
Methods included from Endpoint::Session
Methods included from Endpoint::Segment
Methods included from Endpoint::Revision
Methods included from Endpoint::Pulse
Methods included from Endpoint::Public
#public_card, #query_public_card, #query_public_card_with_metadata
Methods included from Endpoint::Permissions
Methods included from Endpoint::Metric
Methods included from Endpoint::Dataset
Methods included from Endpoint::Database
Methods included from Endpoint::Dashboard
Methods included from Endpoint::Collection
Methods included from Endpoint::Card
#card, #cards, #query_card, #query_card_with_metadata
Methods included from Endpoint::Async
Methods included from Endpoint::Alert
Methods included from Endpoint::Activity
Methods included from Connection
#delete, #get, #head, #post, #put
Constructor Details
#initialize(url:, username: nil, password: nil, token: nil) ⇒ Client
Returns a new instance of Client.
11 12 13 14 15 16 |
# File 'lib/metabase/client.rb', line 11 def initialize(url:, username: nil, password: nil, token: nil) @url = url @username = username @password = password @token = token end |