Class: Cb::Responses::ApiResponse
- Inherits:
-
Object
- Object
- Cb::Responses::ApiResponse
- Extended by:
- Forwardable
- Defined in:
- lib/cb/responses/api_response.rb
Direct Known Subclasses
Cb::Responses::AnonymousSavedSearch::Create, Cb::Responses::AnonymousSavedSearch::Delete, Application, Cb::Responses::ApplicationExternal::SubmitApplication, ApplicationForm, Category::Search, Company::Find, Education::Get, EmailSubscription::Response, EmployeeTypes::Search, Industry::Search, Job::Search, Job::Singular, SavedSearch::Delete, SavedSearch::List, SavedSearch::Retrieve, SavedSearch::Singular, SavedSearch::Update, Spot::Retrieve, User::ChangePassword, User::CheckExisting, User::Delete, User::Retrieve, User::TemporaryPassword, WorkStatus::List
Instance Attribute Summary collapse
-
#models ⇒ Object
(also: #model)
readonly
Returns the value of attribute models.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(raw_response_hash) ⇒ ApiResponse
constructor
A new instance of ApiResponse.
Constructor Details
#initialize(raw_response_hash) ⇒ ApiResponse
Returns a new instance of ApiResponse.
14 15 16 17 18 |
# File 'lib/cb/responses/api_response.rb', line 14 def initialize(raw_response_hash) set_response_variable(raw_response_hash) @metadata = @models = validated_models end |
Instance Attribute Details
#models ⇒ Object (readonly) Also known as: model
Returns the value of attribute models.
11 12 13 |
# File 'lib/cb/responses/api_response.rb', line 11 def models @models end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
11 12 13 |
# File 'lib/cb/responses/api_response.rb', line 11 def response @response end |