module Plotly

Constants

VERSION

Public Class Methods

auth(username, api_key) click to toggle source

Set the default client which is automatically used when any clients aren't assigned.

# File lib/plotly/client.rb, line 35
def auth(username, api_key)
  @client = Client.new(username, api_key)
end
client() click to toggle source

@return [Plotly::Client] @raise [RuntimeError]

# File lib/plotly/client.rb, line 41
def client
  @client ? @client : raise('Authentication required')
end