class Eh
Constants
- COMMAND_PATTERN
Public Class Methods
Source
# File plugins/eh.rb, line 28 def self.dispatch_command(args, fetch: nil, now: Time.now.utc) EhSearch.dispatch_command(args, fetch: fetch, now: now) end
Source
# File plugins/eh.rb, line 20 def self.lookup(args = nil, fetch: nil, now: Time.now.utc) EhSearch.lookup(args, fetch: fetch, now: now) end
Source
# File plugins/eh.rb, line 24 def self.lookup_list(fetch: nil, now: Time.now.utc) lookup(nil, fetch: fetch, now: now) end
Public Instance Methods
Source
# File plugins/eh.rb, line 40 def execute(m, args = nil) themed_flood_safe_reply(m, lookup(args, fetch: method(:fetch_json))) end
Source
# File plugins/eh.rb, line 44 def fetch_json(url) RabbotHttp.fetch(url, user_agent: EhSearch::USER_AGENT) end
Source
# File plugins/eh.rb, line 32 def lookup(args = nil, fetch: nil, now: Time.now.utc) self.class.lookup(args, fetch: fetch, now: now) end
Source
# File plugins/eh.rb, line 36 def lookup_list(fetch: nil, now: Time.now.utc) self.class.lookup_list(fetch: fetch, now: now) end