Class: Fusuma::Plugin::Events::Records::ContextRecord

Inherits:
Record
  • Object
show all
Defined in:
lib/fusuma/plugin/events/records/context_record.rb

Overview

Context Record

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#config_index, #config_param_types, #config_params, inherited, plugins, #shutdown

Constructor Details

#initialize(name:, value:) ⇒ ContextRecord

Returns a new instance of ContextRecord.

Parameters:

  • name (#to_sym)
  • value (String)


14
15
16
17
18
# File 'lib/fusuma/plugin/events/records/context_record.rb', line 14

def initialize(name:, value:)
  super()
  @name = name.to_sym
  @value = value
end

Instance Attribute Details

#nameObject (readonly)

define gesture format



10
11
12
# File 'lib/fusuma/plugin/events/records/context_record.rb', line 10

def name
  @name
end

#valueObject (readonly)

define gesture format



10
11
12
# File 'lib/fusuma/plugin/events/records/context_record.rb', line 10

def value
  @value
end

Instance Method Details

#typeObject



20
21
22
# File 'lib/fusuma/plugin/events/records/context_record.rb', line 20

def type
  :context
end