Class: Kokkai::Meeting

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

Constant Summary

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) ⇒ Meeting

Returns a new instance of Meeting.



7
8
9
10
# File 'lib/kokkai/meeting.rb', line 7

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

Instance Method Details

#speechesObject



12
13
14
15
16
17
# File 'lib/kokkai/meeting.rb', line 12

def speeches
  @raw_record.dig("speechRecord").map do |record|
    recordData = { "recordData" => { "speechRecord" => record } }
    Kokkai::Speech.new(recordData)
  end
end