Class: Twilio::REST::Insights::V3::QueryList::InsightsQueryRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V3::QueryList::InsightsQueryRequest
- Defined in:
- lib/twilio-ruby/rest/insights/v3/query.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ InsightsQueryRequest
constructor
A new instance of InsightsQueryRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ InsightsQueryRequest
Returns a new instance of InsightsQueryRequest.
26 27 28 29 |
# File 'lib/twilio-ruby/rest/insights/v3/query.rb', line 26 def initialize(payload) @domain = payload["domain"] @query = payload["query"] end |
Instance Attribute Details
#domain ⇒ Object
25 26 27 |
# File 'lib/twilio-ruby/rest/insights/v3/query.rb', line 25 def domain @domain end |
#query ⇒ Object
25 26 27 |
# File 'lib/twilio-ruby/rest/insights/v3/query.rb', line 25 def query @query end |
Instance Method Details
#to_json(options = {}) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/twilio-ruby/rest/insights/v3/query.rb', line 30 def to_json( = {}) { "domain": @domain, "query": @query, }.to_json() end |