Class: Tzispa::Command::Api
- Inherits:
-
Object
- Object
- Tzispa::Command::Api
- Defined in:
- lib/tzispa/command/api.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(name, app) ⇒ Api
constructor
A new instance of Api.
Constructor Details
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
8 9 10 |
# File 'lib/tzispa/command/api.rb', line 8 def domain @domain end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/tzispa/command/api.rb', line 8 def name @name end |
Instance Method Details
#generate ⇒ Object
17 18 19 |
# File 'lib/tzispa/command/api.rb', line 17 def generate Tzispa::Controller::Api.new.generate_handler(domain, name) end |