Class: Sesc::Parser::Sp::Body

Inherits:
Object
  • Object
show all
Defined in:
lib/sesc/parser/sp/body.rb

Instance Method Summary collapse

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

#eventsObject



11
12
13
# File 'lib/sesc/parser/sp/body.rb', line 11

def events
  body.elements.last.search('article')
end