Class: Twurl::AbstractCommandController
- Inherits:
-
Object
- Object
- Twurl::AbstractCommandController
- Defined in:
- lib/twurl/abstract_command_controller.rb
Overview
Subclasses need to implement a ‘dispatch’ instance method.
Direct Known Subclasses
AccountInformationController, AliasesController, AuthorizationController, ConfigurationController, RequestController
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client, options) ⇒ AbstractCommandController
constructor
A new instance of AbstractCommandController.
Constructor Details
#initialize(client, options) ⇒ AbstractCommandController
Returns a new instance of AbstractCommandController.
11 12 13 14 |
# File 'lib/twurl/abstract_command_controller.rb', line 11 def initialize(client, ) @client = client @options = end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/twurl/abstract_command_controller.rb', line 4 def client @client end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/twurl/abstract_command_controller.rb', line 4 def @options end |
Class Method Details
.dispatch(*args, &block) ⇒ Object
6 7 8 |
# File 'lib/twurl/abstract_command_controller.rb', line 6 def dispatch(*args, &block) new(*args, &block).dispatch end |