Class: Terret::Tools::Definition

Inherits:
Data
  • Object
show all
Defined in:
lib/terret/tools.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#approvalObject (readonly)

Returns the value of attribute approval

Returns:

  • (Object)

    the current value of approval



5
6
7
# File 'lib/terret/tools.rb', line 5

def approval
  @approval
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



5
6
7
# File 'lib/terret/tools.rb', line 5

def description
  @description
end

#handlerObject (readonly)

Returns the value of attribute handler

Returns:

  • (Object)

    the current value of handler



5
6
7
# File 'lib/terret/tools.rb', line 5

def handler
  @handler
end

#mutatingObject (readonly)

Returns the value of attribute mutating

Returns:

  • (Object)

    the current value of mutating



5
6
7
# File 'lib/terret/tools.rb', line 5

def mutating
  @mutating
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/terret/tools.rb', line 5

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



5
6
7
# File 'lib/terret/tools.rb', line 5

def params
  @params
end

Instance Method Details

#schemaObject



7
# File 'lib/terret/tools.rb', line 7

def schema = { name:, description:, parameters: params }