Class: Superset::RouteInfo
- Defined in:
- lib/superset/route_info.rb
Constant Summary
Constants inherited from Request
Instance Attribute Summary collapse
-
#route ⇒ Object
readonly
Returns the value of attribute route.
Attributes inherited from Request
Instance Method Summary collapse
- #filters ⇒ Object
-
#initialize(route:) ⇒ RouteInfo
constructor
A new instance of RouteInfo.
- #perform ⇒ Object
- #response ⇒ Object
- #result ⇒ Object
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
#route ⇒ Object (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
#filters ⇒ Object
21 22 23 |
# File 'lib/superset/route_info.rb', line 21 def filters result['filters'] end |
#perform ⇒ Object
11 12 13 14 |
# File 'lib/superset/route_info.rb', line 11 def perform validate_route response end |
#response ⇒ Object
16 17 18 19 |
# File 'lib/superset/route_info.rb', line 16 def response validate_route @response ||= client.get(route) end |
#result ⇒ Object
3 |
# File 'lib/superset/route_info.rb', line 3 alias result response |