Class: DdrAux::Client::Request
- Inherits:
-
Object
- Object
- DdrAux::Client::Request
- Defined in:
- lib/ddr_aux/client/request.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
- #get_response ⇒ Object
-
#initialize(path) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(path) ⇒ Request
Returns a new instance of Request.
10 11 12 13 |
# File 'lib/ddr_aux/client/request.rb', line 10 def initialize(path) @path = path @connection = Connection.new end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
4 5 6 |
# File 'lib/ddr_aux/client/request.rb', line 4 def connection @connection end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/ddr_aux/client/request.rb', line 4 def path @path end |
Class Method Details
.get_response(path) ⇒ Object
6 7 8 |
# File 'lib/ddr_aux/client/request.rb', line 6 def self.get_response(path) new(path).get_response end |