Class: Nginxbrew::Local::Ngx
- Inherits:
-
Object
- Object
- Nginxbrew::Local::Ngx
- Defined in:
- lib/nginxbrew/local.rb
Instance Attribute Summary collapse
-
#is_openresty ⇒ Object
readonly
Returns the value of attribute is_openresty.
-
#raw_version ⇒ Object
readonly
Returns the value of attribute raw_version.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Ngx
constructor
A new instance of Ngx.
- #is?(version) ⇒ Boolean
- #name ⇒ Object
- #openresty? ⇒ Boolean
Constructor Details
#initialize(opts = {}) ⇒ Ngx
11 12 13 14 15 |
# File 'lib/nginxbrew/local.rb', line 11 def initialize(opts={}) @is_openresty = opts[:is_openresty] @raw_version = opts[:raw_version] @version = opts[:version] end |
Instance Attribute Details
#is_openresty ⇒ Object (readonly)
Returns the value of attribute is_openresty.
9 10 11 |
# File 'lib/nginxbrew/local.rb', line 9 def is_openresty @is_openresty end |
#raw_version ⇒ Object (readonly)
Returns the value of attribute raw_version.
9 10 11 |
# File 'lib/nginxbrew/local.rb', line 9 def raw_version @raw_version end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
9 10 11 |
# File 'lib/nginxbrew/local.rb', line 9 def version @version end |
Instance Method Details
#is?(version) ⇒ Boolean
17 18 19 |
# File 'lib/nginxbrew/local.rb', line 17 def is?(version) @version == version end |
#name ⇒ Object
25 26 27 |
# File 'lib/nginxbrew/local.rb', line 25 def name @version end |
#openresty? ⇒ Boolean
21 22 23 |
# File 'lib/nginxbrew/local.rb', line 21 def openresty? @is_openresty end |