directly.rating.convert

type: meya.directly.component.rating.convert
class: RatingConvertComponent
path: /meya/directly/component/rating/convert.py
signature: -

Fields

field

signature

required

type

default

description               

spec

ForwardRef('Spec')

null

Override the original spec for this element

context

dict

{}

Send context data with this component's event

sensitive

bool

false

Mark this component's event as sensitive

triggers

list

[]

Activate these dynamic triggers when the component runs

score

int

rating

RatingType

Examples

Basic

triggers:
  - keyword: meya.directly.component.rating.convert
steps:
  - type: meya.directly.component.rating.convert
    score: 123
    rating: faces|stars|thumbs|custom

Full

triggers:
  - keyword: meya.directly.component.rating.convert
steps:
  - type: meya.directly.component.rating.convert
    spec: '?'
    context:
      STRING: ANY
    sensitive: false
    triggers:
      - type: STRING
        data:
          STRING: ANY
        timeout: 123
        trigger_when: ANY
    score: 123
    rating: faces|stars|thumbs|custom