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.
12 13 14 |
# File 'lib/gate/command.rb', line 12 def result @result end |
Class Method Details
.included(base) ⇒ Object
27 28 29 |
# File 'lib/gate/command.rb', line 27 def self.included(base) base.send(:extend, ClassMethods) end |
Instance Method Details
#initialize(data) ⇒ Object
31 32 33 |
# File 'lib/gate/command.rb', line 31 def initialize(data) @result = data end |