Class: Superset::Security::Role::List

Inherits:
Request
  • Object
show all
Defined in:
lib/superset/security/role/list.rb

Constant Summary

Constants inherited from Request

Request::PAGE_SIZE

Instance Attribute Summary collapse

Attributes inherited from Request

#page_num

Instance Method Summary collapse

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_containsObject (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_equalsObject (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_paramsObject



13
14
15
# File 'lib/superset/security/role/list.rb', line 13

def query_params
  [filters, pagination].join
end