Sha256: d640085b2e403550de5229bb3dc9eb39aaad905db7d9cc7f416e64c9e6911255
Contents?: true
Size: 531 Bytes
Versions: 7
Compression:
Stored size: 531 Bytes
Contents
module Zemanta class Markup class Link attr_reader :relevance, :confidence, :entity_type, :target, :anchor def initialize(opts = {}) @relevance = opts["relevance"] @confidence = opts["confidence"] @entity_type = opts["entity_type"] @target = opts["target"].map{ |opts| Target.new(opts) } @anchor = opts["anchor"] end def above?(relevance, confidence) @relevance >= relevance and @confidence >= confidence end end end end
Version data entries
7 entries across 7 versions & 1 rubygems