Class: Metabase::Client

Inherits:
Object
  • Object
show all
Includes:
Connection, Endpoint
Defined in:
lib/metabase/client.rb

Instance Method Summary collapse

Methods included from Endpoint::XRay

#x_ray_card

Methods included from Endpoint::Util

#logs

Methods included from Endpoint::User

#create_user, #current_user, #users

Methods included from Endpoint::Table

#tables

Methods included from Endpoint::Setup

#admin_checklists

Methods included from Endpoint::Setting

#settings

Methods included from Endpoint::Session

#login, #logout

Methods included from Endpoint::Segment

#segments

Methods included from Endpoint::Revision

#revisions

Methods included from Endpoint::Pulse

#pulses

Methods included from Endpoint::Public

#public_card, #query_public_card, #query_public_card_with_metadata

Methods included from Endpoint::Permissions

#groups

Methods included from Endpoint::Metric

#metrics

Methods included from Endpoint::Dataset

#query_dataset

Methods included from Endpoint::Database

#databases

Methods included from Endpoint::Dashboard

#dashboards

Methods included from Endpoint::Collection

#collections

Methods included from Endpoint::Card

#card, #cards, #query_card, #query_card_with_metadata

Methods included from Endpoint::Async

#running_jobs

Methods included from Endpoint::Alert

#alerts

Methods included from Endpoint::Activity

#activities

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