Class: Orchestrate::Application::SimpleCacheResponse
- Inherits:
-
Object
- Object
- Orchestrate::Application::SimpleCacheResponse
- Defined in:
- lib/orchestrate_application/simple_cache_response.rb
Overview
Class to handle Orchestrate.io API responses
Defined Under Namespace
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#header ⇒ Object
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(header, body) ⇒ SimpleCacheResponse
constructor
A new instance of SimpleCacheResponse.
- #success? ⇒ Boolean
Constructor Details
#initialize(header, body) ⇒ SimpleCacheResponse
Returns a new instance of SimpleCacheResponse.
9 10 11 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 9 def initialize(header, body) @header, @body = Header.new(header), Body.new(body) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
7 8 9 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 7 def body @body end |
#header ⇒ Object
Returns the value of attribute header.
7 8 9 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 7 def header @header end |
Instance Method Details
#success? ⇒ Boolean
13 14 15 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 13 def success? true end |