Class: Everypolitician::Popolo::People
- Inherits:
-
Object
- Object
- Everypolitician::Popolo::People
- Includes:
- Enumerable
- Defined in:
- lib/everypolitician/popolo.rb
Instance Attribute Summary collapse
-
#documents ⇒ Object
readonly
Returns the value of attribute documents.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(documents) ⇒ People
constructor
A new instance of People.
Constructor Details
Instance Attribute Details
#documents ⇒ Object (readonly)
Returns the value of attribute documents.
32 33 34 |
# File 'lib/everypolitician/popolo.rb', line 32 def documents @documents end |
Instance Method Details
#each(&block) ⇒ Object
38 39 40 |
# File 'lib/everypolitician/popolo.rb', line 38 def each(&block) documents.each(&block) end |