Class: AssemblyWales::Plenary
- Inherits:
-
Object
- Object
- AssemblyWales::Plenary
- Defined in:
- lib/assembly_wales/plenary.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#record ⇒ Object
Returns the value of attribute record.
-
#speeches ⇒ Object
Returns the value of attribute speeches.
Instance Method Summary collapse
-
#initialize(date) ⇒ Plenary
constructor
Public: Retrieve a Plenary record.
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
#date ⇒ Object
Returns the value of attribute date.
5 6 7 |
# File 'lib/assembly_wales/plenary.rb', line 5 def date @date end |
#record ⇒ Object
Returns the value of attribute record.
5 6 7 |
# File 'lib/assembly_wales/plenary.rb', line 5 def record @record end |
#speeches ⇒ Object
Returns the value of attribute speeches.
5 6 7 |
# File 'lib/assembly_wales/plenary.rb', line 5 def speeches @speeches end |