Class: TableauServerClient::Resources::Job

Inherits:
Resource
  • Object
show all
Defined in:
lib/tableau_server_client/resources/job.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Resource

attr_reader, attributes, #attributes, #delete!, extract_attributes, extract_site_path, #initialize, location, #location, #path, plural_resource_name, resource_name, #server_url, #site_id, #site_path

Methods included from TableauServerClient::RequestBuilder

#build_request

Constructor Details

This class inherits a constructor from TableauServerClient::Resources::Resource

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/tableau_server_client/resources/job.rb', line 8

def id
  @id
end

#modeObject (readonly)

Returns the value of attribute mode.



8
9
10
# File 'lib/tableau_server_client/resources/job.rb', line 8

def mode
  @mode
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/tableau_server_client/resources/job.rb', line 8

def type
  @type
end

Class Method Details

.from_response(client, path, xml) ⇒ Object



10
11
12
13
# File 'lib/tableau_server_client/resources/job.rb', line 10

def self.from_response(client, path, xml)
  attrs = extract_attributes(xml)
  new(client, path, attrs)
end