Class: Superset::Dataset::List

Inherits:
Request
  • Object
show all
Defined in:
lib/superset/dataset/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, #response, #result, #superset_host

Methods included from Superset::Display

#display_headers, #headings, #list, #result, #rows, #table, #title

Constructor Details

#initialize(page_num: 0, title_contains: '', title_equals: '', schema_equals: '', database_id_eq: '') ⇒ List

Returns a new instance of List.



6
7
8
9
10
11
12
# File 'lib/superset/dataset/list.rb', line 6

def initialize(page_num: 0, title_contains: '', title_equals: '', schema_equals: '', database_id_eq: '')
  @title_contains = title_contains
  @title_equals = title_equals
  @schema_equals = schema_equals
  @database_id_eq = database_id_eq
  super(page_num: page_num)
end

Instance Attribute Details

#database_id_eqObject (readonly)

Returns the value of attribute database_id_eq.



4
5
6
# File 'lib/superset/dataset/list.rb', line 4

def database_id_eq
  @database_id_eq
end

#schema_equalsObject (readonly)

Returns the value of attribute schema_equals.



4
5
6
# File 'lib/superset/dataset/list.rb', line 4

def schema_equals
  @schema_equals
end

#title_containsObject (readonly)

Returns the value of attribute title_contains.



4
5
6
# File 'lib/superset/dataset/list.rb', line 4

def title_contains
  @title_contains
end

#title_equalsObject (readonly)

Returns the value of attribute title_equals.



4
5
6
# File 'lib/superset/dataset/list.rb', line 4

def title_equals
  @title_equals
end

Class Method Details

.callObject



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

def self.call
  self.new.list
end