Class: Superset::Database::List
- Defined in:
- lib/superset/database/list.rb
Constant Summary
Constants inherited from Request
Instance Attribute Summary collapse
-
#title_contains ⇒ Object
readonly
Returns the value of attribute title_contains.
Attributes inherited from Request
Class Method Summary collapse
Instance Method Summary collapse
- #ids ⇒ Object
-
#initialize(page_num: 0, title_contains: '') ⇒ List
constructor
A new instance of List.
- #response ⇒ Object
Methods inherited from Request
#query_params, #result, #superset_host
Methods included from Superset::Display
#display_headers, #headings, #list, #result, #rows, #table, #title
Constructor Details
#initialize(page_num: 0, title_contains: '') ⇒ List
Returns a new instance of List.
9 10 11 12 |
# File 'lib/superset/database/list.rb', line 9 def initialize(page_num: 0, title_contains: '') @title_contains = title_contains super(page_num: page_num) end |
Instance Attribute Details
#title_contains ⇒ Object (readonly)
Returns the value of attribute title_contains.
7 8 9 |
# File 'lib/superset/database/list.rb', line 7 def title_contains @title_contains end |
Class Method Details
.call ⇒ Object
14 15 16 |
# File 'lib/superset/database/list.rb', line 14 def self.call self.new.list end |
Instance Method Details
#ids ⇒ Object
23 24 25 |
# File 'lib/superset/database/list.rb', line 23 def ids result.map { |d| d[:id] } end |
#response ⇒ Object
18 19 20 21 |
# File 'lib/superset/database/list.rb', line 18 def response validate_constructor_args super end |