Module: Gate::Command
- Extended by:
- Forwardable
- Defined in:
- lib/gate/command.rb
Defined Under Namespace
Modules: ClassMethods Classes: InvalidCommand
Constant Summary collapse
- SchemaAlreadyRegistered =
Class.new(StandardError)
- SchemaNotDefined =
Class.new(StandardError)
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
14 15 16 |
# File 'lib/gate/command.rb', line 14 def result @result end |
Class Method Details
.included(base) ⇒ Object
29 30 31 |
# File 'lib/gate/command.rb', line 29 def self.included(base) base.send(:extend, ClassMethods) end |
Instance Method Details
#initialize(data) ⇒ Object
33 34 35 |
# File 'lib/gate/command.rb', line 33 def initialize(data) @result = data end |