Class: AlephAlpha::Models
- Inherits:
-
Object
- Object
- AlephAlpha::Models
- Defined in:
- lib/aleph-alpha/models.rb
Instance Method Summary collapse
-
#initialize(access_token: nil) ⇒ Models
constructor
A new instance of Models.
- #list ⇒ Object
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
#list ⇒ Object
7 8 9 |
# File 'lib/aleph-alpha/models.rb', line 7 def list AlephAlpha::Client.get(path: "/models_available") end |