Class: Browsable::PolicyDetector::Result
- Inherits:
-
Data
- Object
- Data
- Browsable::PolicyDetector::Result
- Defined in:
- lib/browsable/policy_detector.rb
Overview
policy: Symbol (a named policy, e.g. :modern)
| Hash ("browser" => "version")
| nil
note: why an allow_browser call could not be resolved; nil otherwise.
Instance Attribute Summary collapse
-
#note ⇒ Object
readonly
Returns the value of attribute note.
-
#policy ⇒ Object
readonly
Returns the value of attribute policy.
Instance Method Summary collapse
Instance Attribute Details
#note ⇒ Object (readonly)
Returns the value of attribute note
24 25 26 |
# File 'lib/browsable/policy_detector.rb', line 24 def note @note end |
#policy ⇒ Object (readonly)
Returns the value of attribute policy
24 25 26 |
# File 'lib/browsable/policy_detector.rb', line 24 def policy @policy end |
Instance Method Details
#resolved? ⇒ Boolean
25 |
# File 'lib/browsable/policy_detector.rb', line 25 def resolved? = !policy.nil? |