Class: Girdle::Controller
- Inherits:
-
Object
- Object
- Girdle::Controller
- Defined in:
- lib/girdle/controller.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id) ⇒ Controller
constructor
A new instance of Controller.
Constructor Details
#initialize(id) ⇒ Controller
Returns a new instance of Controller.
7 8 9 |
# File 'lib/girdle/controller.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/girdle/controller.rb', line 5 def id @id end |
Class Method Details
.autopromote(role) ⇒ Object
25 26 27 28 29 |
# File 'lib/girdle/controller.rb', line 25 def self.autopromote(role) Girdle.run( controller: 'autopromote', role: role.to_s.upcase )['controllerRole'] end |
.list ⇒ Object
11 12 13 |
# File 'lib/girdle/controller.rb', line 11 def self.list Girdle.run(controller: 'list')['controllerList'] end |