Class: Twilio::REST::Knowledge::V2::SearchListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Knowledge::V2::SearchListResponse
- Defined in:
- lib/twilio-ruby/rest/knowledge/v2/search.rb,
lib/twilio-ruby/rest/knowledge/v2/search.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ SearchListResponse
constructor
A new instance of SearchListResponse.
- #search ⇒ Object
- #search_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ SearchListResponse
Returns a new instance of SearchListResponse.
180 181 182 183 184 185 186 |
# File 'lib/twilio-ruby/rest/knowledge/v2/search.rb', line 180 def initialize(version, payload, key) @search_instance = payload.body[key].map do |data| SearchInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
274 275 276 |
# File 'lib/twilio-ruby/rest/knowledge/v2/search.rb', line 274 def headers @headers end |
#search ⇒ Object
270 271 272 |
# File 'lib/twilio-ruby/rest/knowledge/v2/search.rb', line 270 def search @search end |
#search_instance ⇒ Object
188 189 190 |
# File 'lib/twilio-ruby/rest/knowledge/v2/search.rb', line 188 def search_instance @instance end |
#status_code ⇒ Object
278 279 280 |
# File 'lib/twilio-ruby/rest/knowledge/v2/search.rb', line 278 def status_code @status_code end |