class TableauServerClient::Resources::Connection

Attributes

embed_password[RW]
id[R]
password[RW]
server_address[R]
server_port[R]
type[R]
user_name[RW]

Public Class Methods

from_collection_response(client, path, xml) { |from_response(client, "#{path}/#{id}", s)| ... } click to toggle source
# File lib/tableau_server_client/resources/connection.rb, line 16
def self.from_collection_response(client, path, xml)
  xml.xpath("//xmlns:connections/xmlns:connection").each do |s|
    id = s['id']
    yield from_response(client, "#{path}/#{id}", s)
  end
end
from_response(client, path, xml) click to toggle source
# File lib/tableau_server_client/resources/connection.rb, line 11
def self.from_response(client, path, xml)
  attrs = extract_attributes(xml)
  new(client, path, attrs)
end

Public Instance Methods

to_request() click to toggle source
# File lib/tableau_server_client/resources/connection.rb, line 23
def to_request
  request = build_request {|b|
    b.connection(serverAddress: server_address, serverPort: server_port,
                 userName: user_name, password: password, embedPassword: embed_password)
  }
end
update!() click to toggle source
# File lib/tableau_server_client/resources/connection.rb, line 30
def update!
  @client.update self
end