Class: UserAgent::Browsers::Edge
- Inherits:
-
Base
- Object
- Array
- Base
- UserAgent::Browsers::Edge
show all
- Defined in:
- lib/user_agent/browsers/edge.rb
Constant Summary
collapse
- OS_REGEXP =
/Windows NT [\d\.]+|Windows Phone (OS )?[\d\.]+/
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#<=>, #application, #bot?, #eql?, #method_missing, #mobile?, #respond_to?, #to_h, #to_s, #to_str
Methods included from Comparable
#<, #<=, #==, #>, #>=
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class UserAgent::Browsers::Base
Class Method Details
.extend?(agent) ⇒ Boolean
6
7
8
|
# File 'lib/user_agent/browsers/edge.rb', line 6
def self.extend?(agent)
agent.last && agent.last.product == "Edge"
end
|
Instance Method Details
#browser ⇒ Object
10
11
12
|
# File 'lib/user_agent/browsers/edge.rb', line 10
def browser
"Edge"
end
|
18
19
20
|
# File 'lib/user_agent/browsers/edge.rb', line 18
def platform
"Windows"
end
|
#version ⇒ Object
14
15
16
|
# File 'lib/user_agent/browsers/edge.rb', line 14
def version
last.version
end
|