module Hawker
Public Class Methods
drivers()
click to toggle source
The list of available drivers
@return [Array<String>]
# File lib/hawker.rb, line 21 def self.drivers [ "GitHub", "Twitter", "Instagram", "Default" ] end
get(url)
click to toggle source
Returns the driver instance mapped to the given URL
@return [Object]
# File lib/hawker.rb, line 12 def self.get(url) response = Hawker::Request.call(url) Hawker::Mapper.map(url, response) end