Class: AlephAlpha::Models

Inherits:
Object
  • Object
show all
Defined in:
lib/aleph-alpha/models.rb

Instance Method Summary collapse

Constructor Details

#initialize(access_token: nil) ⇒ Models

Returns a new instance of Models.



3
4
5
# File 'lib/aleph-alpha/models.rb', line 3

def initialize(access_token: nil)
  AlephAlpha.configuration.access_token = access_token if access_token
end

Instance Method Details

#listObject



7
8
9
# File 'lib/aleph-alpha/models.rb', line 7

def list
  AlephAlpha::Client.get(path: "/models_available")
end