Class: Sesc::Parser::Sp::Body
- Inherits:
-
Object
- Object
- Sesc::Parser::Sp::Body
- Defined in:
- lib/sesc/parser/sp/body.rb
Instance Method Summary collapse
- #events ⇒ Object
-
#initialize(response) ⇒ Body
constructor
A new instance of Body.
Constructor Details
#initialize(response) ⇒ Body
Returns a new instance of Body.
7 8 9 |
# File 'lib/sesc/parser/sp/body.rb', line 7 def initialize(response) @response = response end |
Instance Method Details
#events ⇒ Object
11 12 13 |
# File 'lib/sesc/parser/sp/body.rb', line 11 def events body.elements.last.search('article') end |