Class: Orchestrate::Application::SimpleCacheResponse

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

Overview


Class to handle Orchestrate.io API responses

Defined Under Namespace

Classes: Body, Header

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



7
8
9
# File 'lib/orchestrate_application/simple_cache_response.rb', line 7

def body
  @body
end

#headerObject

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

Returns:

  • (Boolean)


13
14
15
# File 'lib/orchestrate_application/simple_cache_response.rb', line 13

def success?
  true
end