Class: TableauServerClient::Resources::Resource::Location

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, path, filter) ⇒ Location

Returns a new instance of Location.



62
63
64
65
66
# File 'lib/tableau_server_client/resources/resource.rb', line 62

def initialize(klass, path, filter)
  @klass = klass
  @path = path
  @filter = filter
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



68
69
70
# File 'lib/tableau_server_client/resources/resource.rb', line 68

def klass
  @klass
end

#pathObject (readonly)

Returns the value of attribute path.



68
69
70
# File 'lib/tableau_server_client/resources/resource.rb', line 68

def path
  @path
end

Instance Method Details

#filterObject



70
71
72
# File 'lib/tableau_server_client/resources/resource.rb', line 70

def filter
  @filter.empty? ? {} : {filter: @filter.join(",")}
end

#query_paramsObject



74
75
76
# File 'lib/tableau_server_client/resources/resource.rb', line 74

def query_params
  filter
end