Module: Pleiades::Client::Controller
- Defined in:
- lib/pleiades/core/client.rb
Instance Method Summary collapse
Instance Method Details
#body ⇒ Object
43 44 45 |
# File 'lib/pleiades/core/client.rb', line 43 def body @body ||= request.body.read end |
#events ⇒ Object
47 48 49 |
# File 'lib/pleiades/core/client.rb', line 47 def events client.parse_events_from(body) end |
#signature ⇒ Object
39 40 41 |
# File 'lib/pleiades/core/client.rb', line 39 def signature request.env['HTTP_X_LINE_SIGNATURE'] end |
#validate_signature ⇒ Object
35 36 37 |
# File 'lib/pleiades/core/client.rb', line 35 def validate_signature client.validate_signature(body, signature) end |