class Abrupt::Service::Complexity
Complexity
service documentation see ‘wba.cs.hs-rm.de/AbRUPt/service/complexity/public/index.php/api/v1/complexity’
Constants
- SERVICE_URI
TODO: outsource service uri to module
Service
Public Class Methods
available_options()
click to toggle source
# File lib/abrupt/service/complexity.rb, line 10 def self.available_options %w(adblock vicram vizweb color contrast ratio) end
Public Instance Methods
execute()
click to toggle source
Calls superclass method
Abrupt::Service::Base#execute
# File lib/abrupt/service/complexity.rb, line 18 def execute super @response['differenceMatrix']['matrix'].flatten! @response['differenceMatrix']['palette'].flatten! @response['contrast']['_1'] = @response['contrast'].delete '1' @response end
service_uri()
click to toggle source
# File lib/abrupt/service/complexity.rb, line 14 def service_uri SERVICE_URI end