class DeviceDetector::Response

Defined in:

device_detector/response.cr

Constant Summary

ENTITIES = {bot: ["name"], browser: ["name", "version"], browser_engine: ["name"], camera: ["device", "vendor"], car_browser: ["model", "vendor"], console: ["model", "vendor"], feed_reader: ["name", "version"], library: ["name", "version"], mediaplayer: ["name", "version"], mobile_app: ["name", "version"], mobile: ["vendor", "type", "model"], os: ["name", "version"], pim: ["name", "version"], portable_media_player: ["model", "vendor"], tv: ["model", "vendor"], vendorfragment: ["vendor"]}

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(results : InputStructure) #

[View source]

Instance Method Detail

def bot : Bot #

[View source]
def bot? : Bool #

[View source]
def bot_name #

Old API support


[View source]
def browser : Browser #

[View source]
def browser? : Bool #

[View source]
def browser_engine : BrowserEngine #

[View source]
def browser_engine? : Bool #

[View source]
def browser_engine_name #

Old API support


[View source]
def browser_name #

Old API support


[View source]
def browser_version #

[View source]
def camera : Camera #

[View source]
def camera? : Bool #

[View source]
def camera_device #

Old API support


[View source]
def camera_model #

Old API support


[View source]
def camera_vendor #

[View source]
def car_browser : CarBrowser #

[View source]
def car_browser? : Bool #

[View source]
def car_browser_model #

Old API support


[View source]
def car_browser_vendor #

[View source]
def console : Console #

[View source]
def console? : Bool #

[View source]
def console_model #

Old API support


[View source]
def console_vendor #

[View source]
def feed_reader : FeedReader #

[View source]
def feed_reader? : Bool #

[View source]
def feed_reader_name #

Old API support


[View source]
def feed_reader_version #

[View source]
def library : Library #

[View source]
def library? : Bool #

[View source]
def library_name #

Old API support


[View source]
def library_version #

[View source]
def mediaplayer : Mediaplayer #

[View source]
def mediaplayer? : Bool #

[View source]
def mediaplayer_name #

Old API support


[View source]
def mediaplayer_version #

[View source]
def mobile : Mobile #

[View source]
def mobile? : Bool #

[View source]
def mobile_app : MobileApp #

[View source]
def mobile_app? : Bool #

[View source]
def mobile_app_name #

Old API support


[View source]
def mobile_app_version #

[View source]
def mobile_device #

[View source]
def mobile_device? #

[View source]
def mobile_device_model #

[View source]
def mobile_device_type #

[View source]
def mobile_device_vendor #

[View source]
def mobile_model #

[View source]
def mobile_type #

[View source]
def mobile_vendor #

Old API support


[View source]
def os : Os #

[View source]
def os? : Bool #

[View source]
def os_name #

Old API support


[View source]
def os_version #

[View source]
def pim : Pim #

[View source]
def pim? : Bool #

[View source]
def pim_name #

Old API support


[View source]
def pim_version #

[View source]
def portable_media_player : PortableMediaPlayer #

[View source]
def portable_media_player? : Bool #

[View source]
def portable_media_player_model #

Old API support


[View source]
def portable_media_player_vendor #

[View source]
def raw : Array(Hash(String, Hash(String, String))) #

[View source]
def traffic_type #

to.click related method


[View source]
def tv : Tv #

[View source]
def tv? : Bool #

[View source]
def tv_model #

Old API support


[View source]
def tv_vendor #

[View source]
def vendorfragment : Vendorfragment #

[View source]
def vendorfragment? : Bool #

[View source]
def vendorfragment_vendor #

Old API support


[View source]

Macro Detail

macro method_missing(m) #

[View source]