Class: Superset::RouteInfo

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

Constant Summary

Constants inherited from Request

Superset::Request::PAGE_SIZE

Instance Attribute Summary collapse

Attributes inherited from Request

#page_num

Instance Method Summary collapse

Methods inherited from Request

call, #query_params, #superset_host

Methods included from Display

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

Constructor Details

#initialize(route:) ⇒ RouteInfo

Returns a new instance of RouteInfo.



7
8
9
# File 'lib/superset/route_info.rb', line 7

def initialize(route:)
  @route = route
end

Instance Attribute Details

#routeObject (readonly)

Returns the value of attribute route.



5
6
7
# File 'lib/superset/route_info.rb', line 5

def route
  @route
end

Instance Method Details

#filtersObject



21
22
23
# File 'lib/superset/route_info.rb', line 21

def filters
  result['filters']
end

#performObject



11
12
13
14
# File 'lib/superset/route_info.rb', line 11

def perform
  validate_route
  response
end

#responseObject



16
17
18
19
# File 'lib/superset/route_info.rb', line 16

def response
  validate_route
  @response ||= client.get(route)
end

#resultObject



3
# File 'lib/superset/route_info.rb', line 3

alias result response