Class: Clarinet::App

Inherits:
Object
  • Object
show all
Defined in:
lib/clarinet/app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key) ⇒ App

Returns a new instance of App.

Parameters:

  • api_key (String)

    Clarifai API key



19
20
21
22
23
24
25
# File 'lib/clarinet/app.rb', line 19

def initialize(api_key)
  @client = Clarinet::Client.new api_key

  @concepts = Clarinet::Concepts.new self
  @inputs = Clarinet::Inputs.new self
  @models = Clarinet::Models.new self
end

Instance Attribute Details

#conceptsClarinet::Concepts (readonly)

Returns:



10
11
12
# File 'lib/clarinet/app.rb', line 10

def concepts
  @concepts
end

#inputsClarinet::Inputs (readonly)

Returns:



13
14
15
# File 'lib/clarinet/app.rb', line 13

def inputs
  @inputs
end

#modelsClarinet::Models (readonly)

Returns:



16
17
18
# File 'lib/clarinet/app.rb', line 16

def models
  @models
end