Class: Superset::Security::Role::Get
- Defined in:
- lib/superset/security/role/get.rb
Constant Summary
Constants inherited from Request
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Request
Instance Method Summary collapse
- #id_and_name ⇒ Object
-
#initialize(id) ⇒ Get
constructor
A new instance of Get.
- #result ⇒ Object
Methods inherited from Request
call, #query_params, #response, #superset_host
Methods included from Display
#display_headers, #headings, #list, #rows, #table, #title
Constructor Details
#initialize(id) ⇒ Get
Returns a new instance of Get.
7 8 9 |
# File 'lib/superset/security/role/get.rb', line 7 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/superset/security/role/get.rb', line 5 def id @id end |
Instance Method Details
#id_and_name ⇒ Object
15 16 17 |
# File 'lib/superset/security/role/get.rb', line 15 def id_and_name result.first.slice(:id, :name).values.join(': ') end |
#result ⇒ Object
11 12 13 |
# File 'lib/superset/security/role/get.rb', line 11 def result [ super ] end |