Class: Drillbit::Matchers::Version
- Inherits:
-
Object
- Object
- Drillbit::Matchers::Version
- Includes:
- Generic
- Defined in:
- lib/drillbit/matchers/version.rb
Instance Attribute Summary collapse
-
#default_version ⇒ Object
writeonly
Sets the attribute default_version.
-
#version_constraint ⇒ Object
Returns the value of attribute version_constraint.
Attributes included from Generic
#accept_header, #application, #request
Instance Method Summary collapse
Methods included from Generic
Instance Attribute Details
#default_version=(value) ⇒ Object
Sets the attribute default_version
12 13 14 |
# File 'lib/drillbit/matchers/version.rb', line 12 def default_version=(value) @default_version = value end |
#version_constraint ⇒ Object
Returns the value of attribute version_constraint.
11 12 13 |
# File 'lib/drillbit/matchers/version.rb', line 11 def version_constraint @version_constraint end |
Instance Method Details
#matches?(request) ⇒ Boolean
14 15 16 17 18 |
# File 'lib/drillbit/matchers/version.rb', line 14 def matches?(request) super requested_version == version_constraint end |