Class: Twilio::REST::Microvisor::V1::AppContext::AppManifestContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Microvisor::V1::AppContext::AppManifestContext
- Defined in:
- lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.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 ⇒ AppManifestInstance
Fetch the AppManifestInstance.
-
#initialize(version, app_sid) ⇒ AppManifestContext
constructor
Initialize the AppManifestContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, app_sid) ⇒ AppManifestContext
Initialize the AppManifestContext
75 76 77 78 79 80 81 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 75 def initialize(version, app_sid) super(version) # Path Solution @solution = {app_sid: app_sid, } @uri = "/Apps/#{@solution[:app_sid]}/Manifest" end |
Instance Method Details
#fetch ⇒ AppManifestInstance
Fetch the AppManifestInstance
86 87 88 89 90 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 86 def fetch payload = @version.fetch('GET', @uri) AppManifestInstance.new(@version, payload, app_sid: @solution[:app_sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
101 102 103 104 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 101 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Microvisor.V1.AppManifestContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
94 95 96 97 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 94 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Microvisor.V1.AppManifestContext #{context}>" end |