Class: GarageClient::Request::JsonEncoded::Request
- Inherits:
-
Object
- Object
- GarageClient::Request::JsonEncoded::Request
- Defined in:
- lib/garage_client/request/json_encoded.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
-
#initialize(env) ⇒ Request
constructor
A new instance of Request.
- #json_compatible? ⇒ Boolean
Constructor Details
#initialize(env) ⇒ Request
Returns a new instance of Request.
18 19 20 |
# File 'lib/garage_client/request/json_encoded.rb', line 18 def initialize(env) @env = env end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
16 17 18 |
# File 'lib/garage_client/request/json_encoded.rb', line 16 def env @env end |
Instance Method Details
#json_compatible? ⇒ Boolean
22 23 24 |
# File 'lib/garage_client/request/json_encoded.rb', line 22 def json_compatible? has_json_compatible_body? && has_json_compatible_content_type? end |