Class: TableauRestApi::Server
- Defined in:
- lib/tableau_rest_api/resources/server.rb
Instance Attribute Summary collapse
-
#api_version ⇒ Object
readonly
Returns the value of attribute api_version.
-
#build ⇒ Object
readonly
Returns the value of attribute build.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(server) ⇒ Server
constructor
A new instance of Server.
Methods inherited from Base
Constructor Details
#initialize(server) ⇒ Server
Returns a new instance of Server.
5 6 7 8 9 10 |
# File 'lib/tableau_rest_api/resources/server.rb', line 5 def initialize(server) product_version = server.productVersion @version = product_version.value @build = product_version.build @api_version = server.restApiVersion end |
Instance Attribute Details
#api_version ⇒ Object (readonly)
Returns the value of attribute api_version.
3 4 5 |
# File 'lib/tableau_rest_api/resources/server.rb', line 3 def api_version @api_version end |
#build ⇒ Object (readonly)
Returns the value of attribute build.
3 4 5 |
# File 'lib/tableau_rest_api/resources/server.rb', line 3 def build @build end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
3 4 5 |
# File 'lib/tableau_rest_api/resources/server.rb', line 3 def version @version end |