Sha256: ba47299d3083193ffd9c72b398eae8e4f4f082fb6d8dd108ba3af88f3908a9a4
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
class Zemanta class Markup class Link extend ActiveSupport::Autoload autoload :Target 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zemanta_client-0.0.1 | lib/zemanta/markup/link.rb |