Class: Orchestrate::Application::SimpleCacheResponse::Body

Inherits:
Object
  • Object
show all
Defined in:
lib/orchestrate_application/simple_cache_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



33
34
35
# File 'lib/orchestrate_application/simple_cache_response.rb', line 33

def content
  @content
end

#countObject (readonly)

Returns the value of attribute count.



33
34
35
# File 'lib/orchestrate_application/simple_cache_response.rb', line 33

def count
  @count
end

#documentsObject (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

#documentObject



41
42
43
# File 'lib/orchestrate_application/simple_cache_response.rb', line 41

def document
  documents.first
end