Class: Kokkai::Speech

Inherits:
Record
  • Object
show all
Defined in:
lib/kokkai/speech.rb

Constant Summary collapse

SPEECH_ATTRIBUTES =
%i(speech_order speaker speech)

Constants inherited from Record

Record::DEFAULT_ATTRIBUTES

Instance Attribute Summary

Attributes inherited from Record

#raw, #raw_record

Instance Method Summary collapse

Methods inherited from Record

define_attribute_methods

Constructor Details

#initialize(raw) ⇒ Speech

Returns a new instance of Speech.



9
10
11
12
# File 'lib/kokkai/speech.rb', line 9

def initialize(raw)
  super
  @raw_record = @raw_record.dig("speechRecord")
end