Class: CslCli::Request::Put
- Inherits:
-
Object
- Object
- CslCli::Request::Put
- Defined in:
- lib/csl_cli/request.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(url, body, headers) ⇒ Put
constructor
A new instance of Put.
Constructor Details
#initialize(url, body, headers) ⇒ Put
33 34 35 36 |
# File 'lib/csl_cli/request.rb', line 33 def initialize(url, body, headers) @response = HTTParty.put(url, body: body, headers: headers) @code = @response.code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
31 32 33 |
# File 'lib/csl_cli/request.rb', line 31 def code @code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
30 31 32 |
# File 'lib/csl_cli/request.rb', line 30 def response @response end |