Class: TableauRestApi::Server

Inherits:
Base
  • Object
show all
Defined in:
lib/tableau_rest_api/resources/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_array, #to_h, #to_hash

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_versionObject (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

#buildObject (readonly)

Returns the value of attribute build.



3
4
5
# File 'lib/tableau_rest_api/resources/server.rb', line 3

def build
  @build
end

#versionObject (readonly)

Returns the value of attribute version.



3
4
5
# File 'lib/tableau_rest_api/resources/server.rb', line 3

def version
  @version
end