Class: Fastly::ResponseObject

Inherits:
BelongsToServiceAndVersion show all
Defined in:
lib/fastly/response_object.rb

Overview

Set up a response object. Best used with conditions.

Instance Attribute Summary collapse

Attributes inherited from BelongsToServiceAndVersion

#version

Attributes inherited from Base

#fetcher

Method Summary

Methods inherited from BelongsToServiceAndVersion

#as_hash, delete_path, get_path, path_escape, post_path, put_path, #service, #version_number

Methods inherited from Base

#as_hash, #delete!, delete_path, get_path, #initialize, list_path, path, post_path, put_path, #require_api_key!, #save!

Constructor Details

This class inherits a constructor from Fastly::Base

Instance Attribute Details

#cache_conditionObject

Returns the value of attribute cache_condition.



4
5
6
# File 'lib/fastly/response_object.rb', line 4

def cache_condition
  @cache_condition
end

#contentObject

Returns the value of attribute content.



4
5
6
# File 'lib/fastly/response_object.rb', line 4

def content
  @content
end

#content_typeObject

Returns the value of attribute content_type.



4
5
6
# File 'lib/fastly/response_object.rb', line 4

def content_type
  @content_type
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/fastly/response_object.rb', line 4

def name
  @name
end

#request_conditionObject

Returns the value of attribute request_condition.



4
5
6
# File 'lib/fastly/response_object.rb', line 4

def request_condition
  @request_condition
end

#responseObject

Returns the value of attribute response.



4
5
6
# File 'lib/fastly/response_object.rb', line 4

def response
  @response
end

#service_idObject

Returns the value of attribute service_id.



4
5
6
# File 'lib/fastly/response_object.rb', line 4

def service_id
  @service_id
end

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/fastly/response_object.rb', line 4

def status
  @status
end