Class: Twilio::REST::Content::V1::ContentContext::ApprovalFetchContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Content::V1::ContentContext::ApprovalFetchContext
- Defined in:
- lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb
Overview
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
Instance Method Summary collapse
-
#fetch ⇒ ApprovalFetchInstance
Fetch the ApprovalFetchInstance.
-
#initialize(version, sid) ⇒ ApprovalFetchContext
constructor
Initialize the ApprovalFetchContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, sid) ⇒ ApprovalFetchContext
Initialize the ApprovalFetchContext
77 78 79 80 81 82 83 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 77 def initialize(version, sid) super(version) # Path Solution @solution = {sid: sid, } @uri = "/Content/#{@solution[:sid]}/ApprovalRequests" end |
Instance Method Details
#fetch ⇒ ApprovalFetchInstance
Fetch the ApprovalFetchInstance
88 89 90 91 92 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 88 def fetch payload = @version.fetch('GET', @uri) ApprovalFetchInstance.new(@version, payload, sid: @solution[:sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
103 104 105 106 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 103 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Content.V1.ApprovalFetchContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
96 97 98 99 |
# File 'lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb', line 96 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Content.V1.ApprovalFetchContext #{context}>" end |