Class: Influxdb::Api::ServerVersion::Engine
- Inherits:
-
Object
- Object
- Influxdb::Api::ServerVersion::Engine
- Defined in:
- lib/influxdb/api/server_version.rb
Instance Attribute Summary collapse
-
#major ⇒ Object
readonly
Returns the value of attribute major.
-
#minor ⇒ Object
readonly
Returns the value of attribute minor.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#patch ⇒ Object
readonly
Returns the value of attribute patch.
Instance Method Summary collapse
-
#initialize(name, major, minor, patch) ⇒ Engine
constructor
A new instance of Engine.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(name, major, minor, patch) ⇒ Engine
Returns a new instance of Engine.
9 10 11 |
# File 'lib/influxdb/api/server_version.rb', line 9 def initialize(name, major, minor, patch) @name, @major, @minor, @patch = name, major, minor, patch end |
Instance Attribute Details
#major ⇒ Object (readonly)
Returns the value of attribute major.
7 8 9 |
# File 'lib/influxdb/api/server_version.rb', line 7 def major @major end |
#minor ⇒ Object (readonly)
Returns the value of attribute minor.
7 8 9 |
# File 'lib/influxdb/api/server_version.rb', line 7 def minor @minor end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/influxdb/api/server_version.rb', line 7 def name @name end |
#patch ⇒ Object (readonly)
Returns the value of attribute patch.
7 8 9 |
# File 'lib/influxdb/api/server_version.rb', line 7 def patch @patch end |
Instance Method Details
#inspect ⇒ Object
17 18 19 |
# File 'lib/influxdb/api/server_version.rb', line 17 def inspect to_s.inspect end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/influxdb/api/server_version.rb', line 13 def to_s "%s: %s.%s.%s" % [name, major, minor, patch] end |