class Abrupt::Service::Readability

Readability service documentation see ‘wba.cs.hs-rm.de/AbRUPt/service/readability/’

Constants

SERVICE_URI

TODO: outsource service uri to module Service

Public Class Methods

available_options() click to toggle source
# File lib/abrupt/service/readability.rb, line 10
def self.available_options
  ['lang']
end

Public Instance Methods

execute() click to toggle source
Calls superclass method Abrupt::Service::Base#execute
# File lib/abrupt/service/readability.rb, line 18
def execute
  super
  superfluous_keys = %w(originalText hyphenText)
  @response.delete_if { |key, _value| superfluous_keys.include?(key) }
  @response
end
service_uri() click to toggle source
# File lib/abrupt/service/readability.rb, line 14
def service_uri
  SERVICE_URI
end