Class: Superset::Security::Role::List
- Defined in:
- lib/superset/security/role/list.rb
Constant Summary
Constants inherited from Request
Instance Attribute Summary collapse
-
#name_contains ⇒ Object
readonly
Returns the value of attribute name_contains.
-
#name_equals ⇒ Object
readonly
Returns the value of attribute name_equals.
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(page_num: 0, name_contains: nil, name_equals: nil) ⇒ List
constructor
A new instance of List.
- #query_params ⇒ Object
Methods inherited from Request
call, #response, #result, #superset_host
Methods included from Display
#display_headers, #headings, #list, #result, #rows, #table
Constructor Details
#initialize(page_num: 0, name_contains: nil, name_equals: nil) ⇒ List
Returns a new instance of List.
7 8 9 10 11 |
# File 'lib/superset/security/role/list.rb', line 7 def initialize(page_num: 0, name_contains: nil, name_equals: nil) @name_contains= name_contains @name_equals= name_equals super(page_num: page_num) end |
Instance Attribute Details
#name_contains ⇒ Object (readonly)
Returns the value of attribute name_contains.
5 6 7 |
# File 'lib/superset/security/role/list.rb', line 5 def name_contains @name_contains end |
#name_equals ⇒ Object (readonly)
Returns the value of attribute name_equals.
5 6 7 |
# File 'lib/superset/security/role/list.rb', line 5 def name_equals @name_equals end |
Instance Method Details
#query_params ⇒ Object
13 14 15 |
# File 'lib/superset/security/role/list.rb', line 13 def query_params [filters, pagination].join end |