Class: Orchestrate::Application::SimpleCacheResponse::Body
- Inherits:
-
Object
- Object
- Orchestrate::Application::SimpleCacheResponse::Body
- Defined in:
- lib/orchestrate_application/simple_cache_response.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#documents ⇒ Object
readonly
Returns the value of attribute documents.
Instance Method Summary collapse
- #document ⇒ Object
-
#initialize(body) ⇒ Body
constructor
A new instance of Body.
Constructor Details
#initialize(body) ⇒ Body
Returns a new instance of Body.
35 36 37 38 39 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 35 def initialize(body) @documents = body @count = documents.length @content = nil end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
33 34 35 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 33 def content @content end |
#count ⇒ Object (readonly)
Returns the value of attribute count.
33 34 35 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 33 def count @count end |
#documents ⇒ Object (readonly)
Returns the value of attribute documents.
33 34 35 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 33 def documents @documents end |
Instance Method Details
#document ⇒ Object
41 42 43 |
# File 'lib/orchestrate_application/simple_cache_response.rb', line 41 def document documents.first end |