Class: Twilio::REST::Microvisor::V1::AppContext::AppManifestContext

Inherits:
InstanceContext
  • Object
show all
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

Constructor Details

#initialize(version, app_sid) ⇒ AppManifestContext

Initialize the AppManifestContext

Parameters:

  • version (Version)

    Version that contains the resource

  • app_sid (String)

    A 34-character string that uniquely identifies this App.



52
53
54
55
56
57
58
59
60
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 52

def initialize(version, app_sid)
    super(version)

    # Path Solution
    @solution = { app_sid: app_sid,  }
    @uri = "/Apps/#{@solution[:app_sid]}/Manifest"

    
end

Instance Method Details

#fetchAppManifestInstance

Fetch the AppManifestInstance

Returns:



64
65
66
67
68
69
70
71
72
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 64

def fetch

    payload = @version.fetch('GET', @uri)
    AppManifestInstance.new(
        @version,
        payload,
        app_sid: @solution[:app_sid],
    )
end

#inspectObject

Provide a detailed, user friendly representation



84
85
86
87
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 84

def inspect
    context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
    "#<Twilio.Microvisor.V1.AppManifestContext #{context}>"
end

#to_sObject

Provide a user friendly representation



77
78
79
80
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 77

def to_s
    context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
    "#<Twilio.Microvisor.V1.AppManifestContext #{context}>"
end