Class: Orchestrate::Application::SimpleCacheResponse::Header
- Inherits:
-
Object
- Object
- Orchestrate::Application::SimpleCacheResponse::Header
- Defined in:
- lib/orchestrate_application/simple_cache_response.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#etag ⇒ Object
readonly
Returns the value of attribute etag.
-
#locations ⇒ Object
readonly
Returns the value of attribute locations.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(header) ⇒ Header
constructor
A new instance of Header.
- #location ⇒ Object
Constructor Details
#initialize(header) ⇒ Header
Returns a new instance of Header.
20 21 22 23 24 25 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 20 def initialize(header) @locations = header[:locations] @code, @status = header[:code], header[:status] @etag = header[:etag] @content = {} end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
18 19 20 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 18 def code @code end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
18 19 20 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 18 def content @content end |
#etag ⇒ Object (readonly)
Returns the value of attribute etag.
18 19 20 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 18 def etag @etag end |
#locations ⇒ Object (readonly)
Returns the value of attribute locations.
18 19 20 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 18 def locations @locations end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
18 19 20 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 18 def status @status end |
Instance Method Details
#location ⇒ Object
27 28 29 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 27 def location locations.first end |