Class: Kagi::API::Models::Content::Fast

Inherits:
Data
  • Object
show all
Defined in:
lib/kagi/api/models/content/fast.rb

Overview

Models fast data.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



8
9
10
# File 'lib/kagi/api/models/content/fast.rb', line 8

def output
  @output
end

#referencesObject (readonly)

Returns the value of attribute references

Returns:

  • (Object)

    the current value of references



8
9
10
# File 'lib/kagi/api/models/content/fast.rb', line 8

def references
  @references
end

#tokensObject (readonly)

Returns the value of attribute tokens

Returns:

  • (Object)

    the current value of tokens



8
9
10
# File 'lib/kagi/api/models/content/fast.rb', line 8

def tokens
  @tokens
end

Class Method Details

.for(**attributes) ⇒ Object



9
10
11
# File 'lib/kagi/api/models/content/fast.rb', line 9

def self.for(**attributes)
  new(**attributes, references: attributes[:references].map { Reference[**it] })
end