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
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
51 52 53 54 55 56 57 58 59 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 51 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
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 63 def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, headers: headers) AppManifestInstance.new( @version, payload, app_sid: @solution[:app_sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
89 90 91 92 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 89 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Microvisor.V1.AppManifestContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
82 83 84 85 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 82 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Microvisor.V1.AppManifestContext #{context}>" end |