DuckDuckGo
Constants
ANSWER_TYPE_MAPPING = {"" => AnswerType::None, "calc" => AnswerType::Calc, "color" => AnswerType::Color, "digest" => AnswerType::Digest, "info" => AnswerType::Info, "ip" => AnswerType::IP, "iploc" => AnswerType::IPLoc, "phone" => AnswerType::Phone, "pw" => AnswerType::Password, "rand" => AnswerType::Random, "regexp" => AnswerType::Regexp, "unicode" => AnswerType::Unicode, "upc" => AnswerType::UPC, "zip" => AnswerType::Zip}
Mapping from API strings to AnswerType enum values
VERSION = "0.1.0"
Class methods
query(query : String, no_redirect : Bool = false, no_html : Bool = false, skip_disambig : Bool = false) : InstantAnswer
Query the Instant Answer API
Nested types
- DuckDuckGo::APIError
- DuckDuckGo::AnswerType
- DuckDuckGo::ArgumentError
- DuckDuckGo::Client
- DuckDuckGo::Config
- DuckDuckGo::ConnectionError
- DuckDuckGo::Error
- DuckDuckGo::FlexibleAnswer
- DuckDuckGo::FlexibleInt
- DuckDuckGo::HTTP
- DuckDuckGo::Icon
- DuckDuckGo::InstantAnswer
- DuckDuckGo::Params
- DuckDuckGo::ParseError
- DuckDuckGo::RelatedTopicEntry
- DuckDuckGo::RelatedTopicsConverter
- DuckDuckGo::ResponseType
- DuckDuckGo::Result
- DuckDuckGo::TopicGroup