Class: Superset::Security::Role::Permission::Get
- Defined in:
- lib/superset/security/role/permission/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
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id) ⇒ Get
constructor
A new instance of Get.
- #result ⇒ Object
Methods inherited from Request
#query_params, #response, #superset_host
Methods included from Display
#display_headers, #headings, #list, #rows, #table
Constructor Details
#initialize(id) ⇒ Get
Returns a new instance of Get.
8 9 10 |
# File 'lib/superset/security/role/permission/get.rb', line 8 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/superset/security/role/permission/get.rb', line 6 def id @id end |
Class Method Details
.call(id) ⇒ Object
12 13 14 |
# File 'lib/superset/security/role/permission/get.rb', line 12 def self.call(id) self.new(id) end |
Instance Method Details
#result ⇒ Object
16 17 18 |
# File 'lib/superset/security/role/permission/get.rb', line 16 def result response[:result] end |