Class: AssemblyWales::Plenary

Inherits:
Object
  • Object
show all
Defined in:
lib/assembly_wales/plenary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date) ⇒ Plenary

Public: Retrieve a Plenary record



8
9
10
11
12
# File 'lib/assembly_wales/plenary.rb', line 8

def initialize(date)
  @date = date 
  @record = parse_xml(build_url(date))
  @speeches = parse_speeches
end

Instance Attribute Details

#dateObject

Returns the value of attribute date.



5
6
7
# File 'lib/assembly_wales/plenary.rb', line 5

def date
  @date
end

#recordObject

Returns the value of attribute record.



5
6
7
# File 'lib/assembly_wales/plenary.rb', line 5

def record
  @record
end

#speechesObject

Returns the value of attribute speeches.



5
6
7
# File 'lib/assembly_wales/plenary.rb', line 5

def speeches
  @speeches
end