Class: EVSS::IntentToFile::IntentToFilesResponse
- Inherits:
-
Response
- Object
- Common::Base
- Response
- EVSS::IntentToFile::IntentToFilesResponse
- Defined in:
- lib/evss/intent_to_file/intent_to_files_response.rb
Overview
Model for an ITF response containing a list of intents to file
Constant Summary
Constants included from Common::Client::Concerns::ServiceStatus
Common::Client::Concerns::ServiceStatus::RESPONSE_STATUS
Instance Attribute Summary collapse
-
#intent_to_file ⇒ Array[EVSS::IntentToFile::IntentToFile]
An array of intents to file.
Attributes inherited from Common::Base
Instance Method Summary collapse
-
#initialize(status, response = nil) ⇒ IntentToFilesResponse
constructor
A new instance of IntentToFilesResponse.
Methods inherited from Response
#cache?, #metadata, #ok?, #response_status
Methods inherited from Common::Base
#changed, #changed?, #changes, default_sort, filterable_attributes, max_per_page, per_page, sortable_attributes
Constructor Details
#initialize(status, response = nil) ⇒ IntentToFilesResponse
Returns a new instance of IntentToFilesResponse.
18 19 20 |
# File 'lib/evss/intent_to_file/intent_to_files_response.rb', line 18 def initialize(status, response = nil) super(status, response.body) if response end |
Instance Attribute Details
#intent_to_file ⇒ Array[EVSS::IntentToFile::IntentToFile]
Returns An array of intents to file.
15 16 17 18 19 20 21 |
# File 'lib/evss/intent_to_file/intent_to_files_response.rb', line 15 class IntentToFilesResponse < EVSS::Response attribute :intent_to_file, Array[EVSS::IntentToFile::IntentToFile] def initialize(status, response = nil) super(status, response.body) if response end end |