Class: Twilio::REST::Microvisor::V1::AppContext::AppManifestInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Microvisor::V1::AppContext::AppManifestInstance
- Defined in:
- lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb
Instance Method Summary collapse
-
#app_sid ⇒ String
A 34-character string that uniquely identifies this App.
-
#context ⇒ AppManifestContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#encoded_bytes ⇒ String
The base-64 encoded manifest.
-
#fetch ⇒ AppManifestInstance
Fetch the AppManifestInstance.
-
#hash ⇒ String
App manifest hash represented as ‘hash_algorithm:hash_value`.
-
#initialize(version, payload, app_sid: nil) ⇒ AppManifestInstance
constructor
Initialize the AppManifestInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The absolute URL of this Manifest.
Constructor Details
#initialize(version, payload, app_sid: nil) ⇒ AppManifestInstance
Initialize the AppManifestInstance
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 129 def initialize(version, payload , app_sid: nil) super(version) # Marshaled Properties @properties = { 'app_sid' => payload['app_sid'], 'hash' => payload['hash'], 'encoded_bytes' => payload['encoded_bytes'], 'url' => payload['url'], } # Context @instance_context = nil @params = { 'app_sid' => app_sid || @properties['app_sid'] , } end |
Instance Method Details
#app_sid ⇒ String
Returns A 34-character string that uniquely identifies this App.
158 159 160 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 158 def app_sid @properties['app_sid'] end |
#context ⇒ AppManifestContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
149 150 151 152 153 154 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 149 def context unless @instance_context @instance_context = AppManifestContext.new(@version , @params['app_sid']) end @instance_context end |
#encoded_bytes ⇒ String
Returns The base-64 encoded manifest.
170 171 172 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 170 def encoded_bytes @properties['encoded_bytes'] end |
#fetch ⇒ AppManifestInstance
Fetch the AppManifestInstance
183 184 185 186 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 183 def fetch context.fetch end |
#hash ⇒ String
Returns App manifest hash represented as ‘hash_algorithm:hash_value`.
164 165 166 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 164 def hash @properties['hash'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
197 198 199 200 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 197 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Microvisor.V1.AppManifestInstance #{values}>" end |
#to_s ⇒ Object
Provide a user friendly representation
190 191 192 193 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 190 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Microvisor.V1.AppManifestInstance #{values}>" end |
#url ⇒ String
Returns The absolute URL of this Manifest.
176 177 178 |
# File 'lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb', line 176 def url @properties['url'] end |