Class: Fusuma::Plugin::Events::Records::TextRecord

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

Overview

Default Record

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

#initialize(text) ⇒ TextRecord

Returns a new instance of TextRecord.

Parameters:



12
13
14
15
# File 'lib/fusuma/plugin/events/records/text_record.rb', line 12

def initialize(text)
  super()
  @text = text
end

Instance Method Details

#to_sString

Returns:



22
23
24
# File 'lib/fusuma/plugin/events/records/text_record.rb', line 22

def to_s
  @text
end

#typeObject



17
18
19
# File 'lib/fusuma/plugin/events/records/text_record.rb', line 17

def type
  :text
end