Class: TurnKit::LiveContextContribution

Inherits:
Struct
  • Object
show all
Defined in:
lib/turnkit/prompt_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



12
13
14
# File 'lib/turnkit/prompt_context.rb', line 12

def content
  @content
end

#max_charsObject

Returns the value of attribute max_chars

Returns:

  • (Object)

    the current value of max_chars



12
13
14
# File 'lib/turnkit/prompt_context.rb', line 12

def max_chars
  @max_chars
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



12
13
14
# File 'lib/turnkit/prompt_context.rb', line 12

def name
  @name
end

#trustedObject

Returns the value of attribute trusted

Returns:

  • (Object)

    the current value of trusted



12
13
14
# File 'lib/turnkit/prompt_context.rb', line 12

def trusted
  @trusted
end

Instance Method Details

#trusted?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/turnkit/prompt_context.rb', line 19

def trusted?
  trusted ? true : false
end