Class: Phlex::Reactive::Component::Action

Inherits:
Data
  • Object
show all
Defined in:
lib/phlex/reactive/component.rb

Overview

A declared, client-invokable action and its param schema. params keeps the RAW declared hash (the readable form callers/specs inspect); schema is the compiled Phlex::Reactive::ParamSchema (issue #109) the endpoint coerces through — built ONCE at declaration so a typo'd type symbol raises Phlex::Reactive::UnknownParamType at class load, not at click time.

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



87
88
89
# File 'lib/phlex/reactive/component.rb', line 87

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



87
88
89
# File 'lib/phlex/reactive/component.rb', line 87

def params
  @params
end

#schemaObject (readonly)

Returns the value of attribute schema

Returns:

  • (Object)

    the current value of schema



87
88
89
# File 'lib/phlex/reactive/component.rb', line 87

def schema
  @schema
end