Class: TableauServerClient::Resources::Resource::Location
- Inherits:
-
Object
- Object
- TableauServerClient::Resources::Resource::Location
- Defined in:
- lib/tableau_server_client/resources/resource.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #filter ⇒ Object
-
#initialize(klass, path, filter) ⇒ Location
constructor
A new instance of Location.
- #query_params ⇒ Object
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
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
68 69 70 |
# File 'lib/tableau_server_client/resources/resource.rb', line 68 def klass @klass end |
#path ⇒ Object (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
#filter ⇒ Object
70 71 72 |
# File 'lib/tableau_server_client/resources/resource.rb', line 70 def filter @filter.empty? ? {} : {filter: @filter.join(",")} end |
#query_params ⇒ Object
74 75 76 |
# File 'lib/tableau_server_client/resources/resource.rb', line 74 def query_params filter end |