Class: HttpStub::Configurer::Server::Command
- Inherits:
-
Object
- Object
- HttpStub::Configurer::Server::Command
- Defined in:
- lib/http_stub/configurer/server/command.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Instance Method Summary collapse
- #http_request ⇒ Object
-
#initialize(args) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(args) ⇒ Command
Returns a new instance of Command.
9 10 11 12 |
# File 'lib/http_stub/configurer/server/command.rb', line 9 def initialize(args) @request = args[:request] @description = args[:description] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
7 8 9 |
# File 'lib/http_stub/configurer/server/command.rb', line 7 def description @description end |
Instance Method Details
#http_request ⇒ Object
14 15 16 |
# File 'lib/http_stub/configurer/server/command.rb', line 14 def http_request @request.to_http_request end |