Class: Superset::Database::List

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

Constant Summary

Constants inherited from Request

Request::PAGE_SIZE

Instance Attribute Summary collapse

Attributes inherited from Request

#page_num

Class Method Summary collapse

Instance Method Summary collapse

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

.callObject



14
15
16
# File 'lib/superset/database/list.rb', line 14

def self.call
  self.new.list
end

Instance Method Details

#idsObject



23
24
25
# File 'lib/superset/database/list.rb', line 23

def ids
  result.map { |d| d[:id] }
end

#responseObject



18
19
20
21
# File 'lib/superset/database/list.rb', line 18

def response
  validate_constructor_args
  super
end