module Aua::Agents::FeedReader

Constants

KNOWN_CLIENTS

Public Class Methods

extend?(agent) click to toggle source
# File lib/aua/agents/feed_reader.rb, line 4
def self.extend?(agent)
  KNOWN_CLIENTS.include?(agent.app) ||
  (agent.app == "Tumblr" && agent.products.include?("RSS") && agent.products.include?("syndication")) ||
  agent.products.include?("Vienna")
end

Public Instance Methods

name() click to toggle source
# File lib/aua/agents/feed_reader.rb, line 14
def name
  return :TumblrRSSSyndication if app == "Tumblr"
  return :Vienna if products.include?("Vienna")
  app.to_sym
end
type() click to toggle source
# File lib/aua/agents/feed_reader.rb, line 10
def type
  :FeedReader
end
version() click to toggle source
# File lib/aua/agents/feed_reader.rb, line 20
def version
  @version ||= version_of(name) || versions[0] || versions[1]
end