class UserAgent::Browsers::PodcastAddict
def os
-
(nil, String)
- the operating system
def os return nil unless length >= 4 # comment[0] = 'Linux' # comment[1] = 'U' # comment[2] = 'Android x.y.z' except when there are only 3 tokens, then we don't know the version if (self[3].product == 'Dalvik' || self[3].product == 'Mozilla') && self[3].comment.length > 3 self[3].comment[2] elsif (self[3].product == 'Dalvik' || self[3].product == 'Mozilla') && self[3].comment.length == 3 'Android' else nil end end