Class: Twilio::REST::Microvisor::V1::AppContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Microvisor::V1::AppContext
- Defined in:
- lib/twilio-ruby/rest/microvisor/v1/app.rb,
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].
Defined Under Namespace
Classes: AppManifestContext, AppManifestInstance, AppManifestList, AppManifestPage
Instance Method Summary collapse
-
#app_manifests ⇒ AppManifestList, AppManifestContext
Access the app_manifests.
-
#delete ⇒ Boolean
Delete the AppInstance.
-
#fetch ⇒ AppInstance
Fetch the AppInstance.
-
#initialize(version, sid) ⇒ AppContext
constructor
Initialize the AppContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, sid) ⇒ AppContext
Initialize the AppContext
134 135 136 137 138 139 140 141 142 143 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app.rb', line 134 def initialize(version, sid) super(version) # Path Solution @solution = { sid: sid, } @uri = "/Apps/#{@solution[:sid]}" # Dependents @app_manifests = nil end |
Instance Method Details
#app_manifests ⇒ AppManifestList, AppManifestContext
Access the app_manifests
169 170 171 172 173 174 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app.rb', line 169 def app_manifests AppManifestContext.new( @version, @solution[:sid] ) end |
#delete ⇒ Boolean
Delete the AppInstance
147 148 149 150 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app.rb', line 147 def delete @version.delete('DELETE', @uri) end |
#fetch ⇒ AppInstance
Fetch the AppInstance
155 156 157 158 159 160 161 162 163 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app.rb', line 155 def fetch payload = @version.fetch('GET', @uri) AppInstance.new( @version, payload, sid: @solution[:sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
185 186 187 188 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app.rb', line 185 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Microvisor.V1.AppContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
178 179 180 181 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app.rb', line 178 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Microvisor.V1.AppContext #{context}>" end |